Re: Auth component and admin routing confusion

2011-11-11 Thread phpMagpie
Not sure how an unsuccessful login (you say you stay on login page with error message) and creating a different login for admins and non- admins are related. If auth replies with 'wrong combinisation of username/password' then the credentials you supplied were wrong, not matter which login form yo

Re: CakePhp related domain

2011-11-11 Thread phpMagpie
Is this your domain? On Nov 9, 7:20 pm, Sandy wrote: > I thoroughly researched this beforehand and this falls under "fair > use" for trademarks as it is used nominatively and does not cause > confusion. If not, alot of similar websites would also have to be > shutdown (Google "photoshop tutorials

Re: CakePhp related domain

2011-11-12 Thread phpMagpie
> Sandy: Yes, this domain is mine Just wanted to know if it was you trying to make a profit from a CakePHP related domain, or if you were informing us of someone else who was selling this domain? > In my opinion its better for a CakePHP programmer to use it and not > some > domain squatter, which

Re: Ignoring 'belongsTo' inside model

2011-11-12 Thread phpMagpie
I would advise you to learn how to use containable ... only takes a couple of lines of code makes life a whole lot easier than having to bind and unbind for every paginate. HTH, Paul On Nov 11, 8:02 am, thom wrote: > On Fri, Nov 11, 2011 at 2:23 PM, Andras Kende wrote: > > There are multiple wa

Re: How to paginate "subtable" in a view?

2011-11-13 Thread phpMagpie
> But I get the error: > Undefined property: View::$Paginator [APP\views\categories\view.ctp, > line 69] You can't paginate data you have fetched with $this->Model->find() you must use $this->paginate(). HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp

Re: Ignoring 'belongsTo' inside model

2011-11-13 Thread phpMagpie
another thread has now been started about this: http://groups.google.com/group/cake-php/t/425ad9184aea7654 Will be interesting to see the results, I have never heard anyone else complain about this at any length so doubt it is that much of a factor. Certainly not enough for me to manually bind an

Re: Auth - 2 logged in models simultaneously

2011-11-13 Thread phpMagpie
For them to exist as separate entities and at the same time they will need their own (and I assume on the same client) then you will need them to use separate sessions, well pretty much separate everything ... not sure how easy that is going to be to configure, i possible at all. In summary, yo

Re: How to paginate "subtable" in a view?

2011-11-13 Thread phpMagpie
Daniel, You're trying to do a find (for your Category data) and thinking you can then paginate the contained Posts it fetches, you cannot. I advise you spend some time going through the book's pages on pagination to understand it: http://book.cakephp.org/view/1231/Pagination In essence you nee

Re: How-to URL modification

2011-11-13 Thread phpMagpie
Links to the relevant book pages: http://book.cakephp.org/view/945/Routes-Configuration // 1.3 http://book.cakephp.org/2.0/en/development/routing.html#routes-configuration // 2.0 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Quest

Re: my own controller instead of user_controller login problem

2011-11-14 Thread phpMagpie
>From page: http://book.cakephp.org/view/1250/Authentication "Now, there are a few conventions to think about when using AuthComponent. By default, the AuthComponent expects you to have a table called 'users' with fields called 'username' and 'password' to be used." So if you insist on using a

Re: Message: No input file specified.

2011-11-14 Thread phpMagpie
http://lmgtfy.com/?q=No+input+file+specified+cakephp -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send

Re: Site not working in shared host showing 500 Internal server error

2011-11-14 Thread phpMagpie
http://lmgtfy.com/?q=cakephp+500+Internal+Server+Error -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, sen

Re: Concurrency control

2011-11-14 Thread phpMagpie
Not sure if there is an existing behaviour, but if you create a created and modified field Cake will automagically update them. Check these to see if they have been updated since form load et voila. HTH, Paul -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Auth component problem

2011-11-14 Thread phpMagpie
Which version of Cake you using? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+un

Re: Auth component problem

2011-11-14 Thread phpMagpie
$this->Auth->fields = array('username' => 'email', 'password' => 'password'); // no capital F HTH, Paul -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP relat

Re: Form from another model in a view

2011-11-14 Thread phpMagpie
I don't think there is a right and wrong way to be honest, I have done this in the Comment controller and in my BlogPost controller, if comments are used across many models then probably best to centralize logic in comments controller. I don't worry about field by field validation errors for co

Re: Message: No input file specified.

2011-11-14 Thread phpMagpie
When it works on local server and doesn't once uploaded, the only variable is your server's configuration and .htaccess, mod_rewrite, DBO tend to be the main culprits. HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Que

Re: Re-order an Array

2011-11-14 Thread phpMagpie
http://book.cakephp.org/view/1492/combine HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send

Re: onClick in button

2011-11-15 Thread phpMagpie
> but it doesn't work why?? - How does it not work, what actually happens? - Are you running FireBug or something so you can debug what is happening, or if the event is being fired at all? HTH, Paul -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.o

Re: paginated comments not showing up in view

2011-11-15 Thread phpMagpie
try echo debug($comments); in your view to see if the array does contain any data. HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questio

Re: How to paginate "subtable" in a view?

2011-11-15 Thread phpMagpie
Use contain: $this->paginate = array( 'Post'=> array( 'limit'=> 2, 'page'=> 1, 'order'=> array('Post.created'=> 'desc'), 'conditions' => array('Post.category_id' => $id), 'contain'=>array() // ) ); $this->set('posts', $this->paginate('Post')); O

Re: paginated comments not showing up in view

2011-11-16 Thread phpMagpie
Glad you got it working ... whenever you're scratching your head over the format of data passed back from CakePHP simply echo debug($array); and have a look. Once you've learned the way Cake works you know exactly what it;s going to do every time and your development time speeds up drasticall

Re: cakphp 2.0.3 - whats this for an error message?

2011-11-17 Thread phpMagpie
I assume flash() is Session->flash() so look at if you are calling the Session helper correctly. HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP r

Re: Troubleshooting the CakeDC TinyMCE helper plugin.

2011-11-17 Thread phpMagpie
I've never read anyone extolling the virtues of short commands. Can you dig out a link to the tutorial in question? To create portable code you should always use the 'verbose' commands so it will work on any server setup. HTH, Paul. -- Our newest site for the community: CakePHP Video Tutoria

Re: cakephp: $this->redirect is not passing $student_info parameter from one controller to another controller action

2011-11-17 Thread phpMagpie
Jeremy is right, redirect sends a new request to the url you specified i.e. /motor_developments/search/$studentInfo and as $studentInfo is an array you cannot do this. How about just passing the Student.id and doing the Student->find() in the redirected controller? HTH, Paul. -- Our newest

Re: HELP! model associations lost after import

2011-11-17 Thread phpMagpie
Your first two examples will not work as models are not plural. http://book.cakephp.org/view/936/Importing-Controllers-Models-Components-Behaviors- HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask

Re: Joining tables after belongsTo Associations

2011-11-17 Thread phpMagpie
Sorry that did not make much sense to me :( How about telling us what models you have, how they are associated and what data you are trying to extract from them? HTH, Paul -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions

Re: IE hangs when loading a page

2011-11-17 Thread phpMagpie
How about making your page publicly available so we can see for ourselves what's happening, then we could look at it in various editors and try to see what's happening? HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Qu

Re: Multiple Checkbox Bug in CakePHP 2.0.3?

2011-11-17 Thread phpMagpie
Have you looked at the sql dump to see what's happening? HABTM does delete all existing rows in the join table for the object your are editing and should then replace them with the new options your chose. Maybe it is doing the first part and not the second?!? HTH, Paul. -- Our newest site fo

Re: Trying to use JavaScript and PHP with CakePHP

2011-11-17 Thread phpMagpie
Barricades, The idea of firing of an ajax request (which means your existing page does not get reloaded) to upload a file and have the files path returned is relatively simple and I'm sure you will be able to modify any of the existing plugins to do this, you just need to get a grip on how to u

Re: Implement Getter/Setter in Model-Classes

2011-11-17 Thread phpMagpie
> I know there is a callback beforeSave, but there is no afterRead. You were close with afterRead, that I'm not sure how you missed afterFind :) http://book.cakephp.org/view/1048/Callback-Methods HTH, Paul -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Ch

Re: cakphp 2.0.3 - whats this for an error message?

2011-11-18 Thread phpMagpie
K, I get you, dunno why you're not getting missing controller warning as I am still waiting for the CakePHP 2.0 teething problems to die down a bit before I move to it. HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Qu

Re: Trying to use JavaScript and PHP with CakePHP

2011-11-18 Thread phpMagpie
Ewww, iframes (never used them myself). AJAX would be a much easier and understandable solution to what your trying to do, and more useful thing to learn for any other time you want to update content on a page without a full page load. Surely this plugin comes with the upload.php file supplied

Re: Installing a Cake app on OVH, with shared hosting

2011-11-18 Thread phpMagpie
Actually, this covers it better: http://book.cakephp.org/view/917/Apache-and-mod_rewrite-and-htaccess -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related q

Re: Installing a Cake app on OVH, with shared hosting

2011-11-18 Thread phpMagpie
This may help: http://bakery.cakephp.org/articles/BBBThunda/2010/02/25/troubleshooting-cakephp-installation-issues-related-to-apache-2-mod_rewrite-for-beginners HTH, Paul -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions sit

Re: Joining tables after belongsTo Associations

2011-11-18 Thread phpMagpie
Never used the joins option so not sure in what order it processes model defined associations and joins or of your can influence them? Anyone else? Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.ca

Re: loginError still notify even though i successfully logged in

2011-11-19 Thread phpMagpie
Which error is showing? Login or Auth? You have set authorize to controller, have you created an isAuthorized() action and is it returning true? HTH, Paul. P.S. May just be a typo but you have missed an 'r' off authErro*r* -- Our newest site for the community: CakePHP Video Tutorials http:/

Re: how to include javascript in cakephp ?

2011-11-19 Thread phpMagpie
Try showing us a working page and we can debug? I'm not going to go to the trouble of creating a test environment on your behalf. HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and

Re: Trying to use JavaScript and PHP with CakePHP

2011-11-19 Thread phpMagpie
I am unaware of any limitation on uploading files via ajax, can you show me where you read this? All you are doing is creating a file input field, and submitting it via ajax to a controller/action .. it will be able to process that file field, upload to server, create a record in a table and re

Re: how to include javascript in cakephp ?

2011-11-19 Thread phpMagpie
> wait moment this question not duplicated Hmmm, me thinks it is duplicated. Thanks for the heads up. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related

Re: publish a project. what to do with database?

2011-11-21 Thread phpMagpie
Always good to learn how to import dumps via command line, but also worth asking your host if they can give you access to something like phpMyAdmin (other MySQL GUI interface's are available). HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Chec

Re: Paginate relational data with multiple condition.

2011-11-21 Thread phpMagpie
For all things search-like consider CakeDCs searchable plugin. https://github.com/CakeDC/search Also for nesting models data make sure you're using containable. http://book.cakephp.org/view/1323/Containable HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.ca

Re: how to include javascript in cakephp ?

2011-11-21 Thread phpMagpie
I don't think the other two guys got the point that you gave this answer over at stackoverflow?!? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related ques

Re: First try does not seem to find the CSS file

2011-11-21 Thread phpMagpie
> Cake should change this default! Not sure how cake changing a color in the default.css (something that most people would replace with their own CSS file instantly) would have helped your inability to recognise if a css file was loaded or not? Paul. -- Our newest site for the community: Cake

Re: Trying to use JavaScript and PHP with CakePHP

2011-11-21 Thread phpMagpie
OK, well I never knew that! All of my apps have file upload tools of one variety or another, but as I use existing plugins I guess I never had an opportunity to realise this cannot be done with pure AJAX. Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.o

Re: How to validate hasAndBelongsToMany multiple-select?

2011-11-21 Thread phpMagpie
If you're using the core 'multiple' validation rule then I was involved in many discussions about this some time back, the following search should provide all the reading you require: https://groups.google.com/forum/#!searchin/cake-php/validate$20multiple$20rule HTH, Paul. -- Our newest site f

Re: Techniques for passing data around

2011-11-21 Thread phpMagpie
Telling us what data you are passing around and for what purpose may give us more information to be able to help you. The only thing I tend to pass around is an ID or slug (within the URL) and from that you can pretty much find whatever you want for the page the person is wanting to view or bei

Re: How to paginate in HasAndBelongsToMany?(a liitle bit confused )

2011-11-26 Thread phpMagpie
You should find your answer by searching this group: https://groups.google.com/forum/#!searchin/cake-php/paginate$20habtm -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with the

Re: adjusting my website to different browser with cake

2011-11-26 Thread phpMagpie
This is not a CakePHP specific problem, cross browser compatibility is a HTML, CSS, JavaScript thing. > that my website looks the same, no matter what browser is used? My first tip would be to realise that this ain't gonna happen, each browser (never mind PC, MAC, Linux, iPad, Android and on and

Re: MVC + js

2011-11-26 Thread phpMagpie
I suggest you run through a more standard tutorial first to get used to the CakePHP's conventions. Then do another tutorial based around logging mouse coordinates using javascript seperately (watch out for cross browser differences on that one). Once you have a good understanding on how both th

Re: cakephp 1.3 with javascript

2011-11-26 Thread phpMagpie
As Zaky says, you need to take the data returned from the controller action and insert it into the DOM somewhere ... look in the jQuery documentation for examples of how to do this. HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the n

Re: Displaying temp view using beforeSave/beforeRender ?

2011-11-26 Thread phpMagpie
The distance of your web server to the end user does not impact on speed. Maybe you should be worrying about what's happening in your code or be looking for a better hosting provider. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePH

Re: Datetime picker help

2011-11-26 Thread phpMagpie
http://addyosmani.com/blog/the-missing-date-time-selector-for-jquery-ui/ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe fr

Re: Datetime picker help

2011-11-26 Thread phpMagpie
I use jQuery UI for my datepicker, this looks a nice solution for date and time: http://trentrichardson.com/examples/timepicker/ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others

Re: using isAuthorized()

2011-11-29 Thread phpMagpie
When I return false from isAuthorized() I simply get returned to the referring page (i.e. the page I was already on). If your app is behaving different then you've probably set a variable that is changing the default behavior. HTH, Paul. -- Our newest site for the community: CakePHP Video T

Re: problem when setup

2011-11-29 Thread phpMagpie
The warning tells you exactly what to do to remedy the problem. HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe

Re: adjusting my website to different browser with cake

2011-11-29 Thread phpMagpie
Yip, in some instances, although this should not be heavily relied on, you need to include different CSS declarations in HTML IF statements, which also allow for different CSS for different IE versions, another issue if you supporting older browsers. HTH, Paul. -- Our newest site for the comm

Re: adjusting my website to different browser with cake

2011-11-29 Thread phpMagpie
Thanks for the heads up on that Jeremy! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake

Re: How Check validate before save

2011-11-29 Thread phpMagpie
CakePHP will do this for you automagically when using Model::saveAll(). HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To uns

Re: role-base authentication

2011-11-29 Thread phpMagpie
You do not give any information on what part of authentication you are struggling with. Auth will work with users that are associated to roles, after the user it authenticated you then need to check their level of authorization (two different things). I do this with isAuthorized() methods in m

Re: can i have two login?

2011-11-30 Thread phpMagpie
In what situation would you not want the newly authenticated user to overwrite the old one? Are you wanting an admin and a non-admin user to be logged into the same site from the same computer/browser at the same time? -- Our newest site for the community: CakePHP Video Tutorials http://tv.ca

Re: How Check validate before save

2011-11-30 Thread phpMagpie
> As others have said when you call your models save() method it will check validation by default. save() will not validate associated data as it only saves the current model. As I stated previously saveAll() will validate associated model data in a properly formatted data array. HTH, Paul.

Re: Form input Automagic on hasAndBelongsToMany when the model is not the model for the form?

2011-11-30 Thread phpMagpie
That's a very deeply associated field, Cake is possibly struggling to complete the automagic that deep. You may struggle with a model called Session due to clash with the Session component. AFAIK, any ajax created or deleted fields will mess up the Security Hash as it's generated on page load,

Re: Blog with posts and comments

2011-11-30 Thread phpMagpie
Does the blog tutorial not cover all of this? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email t

Re: Has many problem

2011-11-30 Thread phpMagpie
Option 2 does not look normalized to me as data1, data2, data3 should be in an associated table Process hasMany Data <-> Data belongsTo Process. When editing you echo each records id and therefore the save call will update the correct record. echo $this->Form->input("Process.0.id"); echo $this

Re: Has many problem

2011-11-30 Thread phpMagpie
Sorry, you have lost me. I suspect you are over-thinking or misunderstanding what it is you're trying to achieve. HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others

Re: Has many problem

2011-11-30 Thread phpMagpie
Option 2 does not look normalized to me as data1, data2, data3 should be in an associated table Process hasMany Data <-> Data belongsTo Process. When editing you echo each records id and therefore the save call will update the correct record. echo $this->Form->input("Process.0.id"); echo $this

Re: Access Data in Associations Efficiently

2011-11-30 Thread phpMagpie
@Andras: That's an awful lot of work, @ Jordy: I recommend you learn how to use Containable which makes the task as simple as: $this->User->find('first', array( 'conditions'=>array('User.id'=>$uid), 'contain'=>array('Pet'=>'Post') )); Simple and efficient! HTH, Paul. http://book.cakephp.

Re: Has many problem

2011-12-01 Thread phpMagpie
> It's normalized because data1, data2 and data3 are always the same fields, they don't change with the process :) Just because it works for you 'now' does not make it normalized ... a normalized database would work for processes with 1 or 1,000 data relations. What happens if you need more dat

Re: Form input Automagic on hasAndBelongsToMany when the model is not the model for the form?

2011-12-01 Thread phpMagpie
Can you show us an echo debug of your data array? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send ema

Re: Blog with posts and comments

2011-12-01 Thread phpMagpie
Not sure what it is you are struggling with ... if you want to add a comment to a Post then echo a form with a hidden field containing Comment.post_id. If wanting to view a Post and it's comments then: $this->set('post', $this->Post->find('first', array( 'conditions'=>array('Post.id'=>$id),

Re: How Check validate before save

2011-12-01 Thread phpMagpie
Adding 'validate'=>'only' will never save as your asking the function to only validate the data. If 'incorrect' data is passing validating then you have something wrong with your validation rules. Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Chec

Re: Best image resize and crop helper

2011-12-01 Thread phpMagpie
I'm using SLIR2: http://code.google.com/p/smart-lencioni-image-resizer/ HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To uns

Re: onClick show Posts from yesterday.

2011-12-05 Thread phpMagpie
What part of this are you having problems with ... 1. Generating an onClick event which fires a link to a controller/action? 2. Creating a controller/action which calculates a data based on some params and returns a new result set? 3. If link is Ajax, echoing the returned HTML into yo

Re: Edit an object without creating it

2011-12-05 Thread phpMagpie
You should never get to the point of editing a record's data before first displaying a form for that record. It's at this point you should check if a record with the given ID exists and act accordingly. HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakep

Re: HelpBalloon in Cake

2011-12-05 Thread phpMagpie
They are more commonly referred to as ToolTips and a search for those should give you some more references: http://lmgtfy.com/?q=cakephp+tooltip I personally use jQuery as my JS Framework and qTip for tooltips. HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv

Re: HelpBalloon in Cake

2011-12-05 Thread phpMagpie
P.S. I did not try to answer your question directly as I have no experience of HelpBallon, do not use Prototype and the article you linked to is from 2006 so thought it was worthwhile suggesting you look for a more modern solution to your problem. -- Our newest site for the community: CakePHP

Re: Is this it?

2011-12-05 Thread phpMagpie
What is it you're missing David? Have you asked questions? Where they answered? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsub

Re: User and admin login

2011-12-05 Thread phpMagpie
Assign roles to your users and check their role during authorization: http://book.cakephp.org/view/1275/authorize Note: authorization occurs after a user has been authenticated and during every request to check if the users should have access to the resource they have requested HTH, Paul. --

Re: CakePHP 1.3 AUTH

2011-12-05 Thread phpMagpie
Are you seeing the add form, if so when you submit the form echo debug($this->data); to check if the data is being sent. After that check to see if you have validation rules which are blocking the save, if you repeatedly get returned to the add user form then it is likely to be validation whi

Re: find('first') - How to limit contained tables results

2011-12-05 Thread phpMagpie
Try searching book for containable: http://book.cakephp.org/view/1323/Containable HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions

Re: onClick show Posts from yesterday.

2011-12-06 Thread phpMagpie
So which of those two steps are you struggling with? Creating a link with an image is not difficult (either wrap an image in an a tag or preferrably use CSS image replacement). The only slightly difficult part in the controller/action is working out a date for yesterday and Dave Milson gave you

Re: Edit an object without creating it

2011-12-06 Thread phpMagpie
You gave no indication this was to be a REST enabled application and as 99% of apps are not REST then the replies were valid. Even then, the REST interface would surely not allow for manual input of Post IDs, this just smacks of allowing people to edit any Post in your database. You would not

Re: How Can I do custom pagination in Cake PHP ?

2011-12-06 Thread phpMagpie
as euromark says without more information all we can say is, read the book: http://book.cakephp.org/view/1237/Custom-Query-Pagination HTH, Paul. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org a

Re: How To Encrypt Code Cake PHP

2011-12-06 Thread phpMagpie
Search this group and the answers you will find: https://groups.google.com/forum/#!searchin/cake-php/encrypt/cake-php/Ncw6fbTLRmc/Z0QrvhMXOb0J -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and

Re: Edit an object without creating it

2011-12-07 Thread phpMagpie
In a non-REST application you would only get to an edit form after clicking a system generated edit link for an existing post and as such the id hidden field value would be correct. If for some strange reason the ID did not exist when retrieving the data to populate the form then you would de

Re: Edit an object without creating it

2011-12-08 Thread phpMagpie
I agree that checking and double-checking is a good thing, was just trying to explain that in MOST circumstances there the ID passed to the edit action should be checked before you get to saving the new data. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Cake 2.0 documentation

2011-12-08 Thread phpMagpie
The argument is simple, it is wrong to add a comment if it is to supplement missing or correct existing documentation. You should edit the documentation then the problem is resolved for all others who read it thereafter. I think this is a brilliant advancement for the new book, but maybe we c

Re: QuickApps - CakePHP 2.0 CMS - Awesomeness.

2011-12-10 Thread phpMagpie
What does this offer that the more established Croogo (http://croogo.org/) does not? A quick look around the backend and plugins does not instantly hit me with anything radically different. Would be much better if everyone who wants to create a CakePHP based CMS worked on one project rather th

Re: Cake 2.0 documentation

2011-12-10 Thread phpMagpie
Am I right to assume that was there all along Mark? If so, sorry :) I am yet to make the switch to Cake 2.0 so not spent much time in the 2.0 book. I only got involved in this thread as seeing various threads discussing the new documentation where the answer has been for them to contribute so

Re: QuickApps - CakePHP 2.0 CMS - Awesomeness.

2011-12-10 Thread phpMagpie
@Marco: That's not what I was saying at all. If this project is taking an different route that fulfills a need not serviced by Croogo (honorable mention to Infinitas too - http://infinitas-cms.org) or that could not be easily added into Croogo (or Infinitas) then fair enough. But, if they

Re: QuickApps - CakePHP 2.0 CMS - Awesomeness.

2011-12-10 Thread phpMagpie
@y2k_2000: I promise I will take a look at QACMS and build two identical sites/apps using them in the coming weeks. But, from looking at the admin system it does seem as though QACMS does exactly the same as Croogo ... the only major difference I could see was the ability to assign a template to

Re: Today

2011-12-12 Thread phpMagpie
It's 10pm for me in the UK now and the event has started. WebEx says like I am the only attendee listening to Larry, Mark and Jose (Graham having probs connecting), but Larry says another 20+ listening in. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org C

Re: Today

2011-12-12 Thread phpMagpie
Short and sweet, off to bed now. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+un

Re: Paginator issue resolved: Incorrect documentation

2011-12-13 Thread phpMagpie
Details on how to contribute your changes to the documentation can be found here: http://book.cakephp.org/2.0/en/contributing/documentation.html -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org a

Re: Today

2011-12-13 Thread phpMagpie
Odd little session, it only lasted 25mins, I thought Mark was mocking me, lol. That's not a great advert for Cisco WebEx, took ages for Graham to join, lost Jose at one point and could not talk with the other attendees. -- Our newest site for the community: CakePHP Video Tutorials http://tv

Re: Protecting access to field, does exist?

2012-01-23 Thread phpMagpie
Limit what you fetch in the first place using the containable behaviour which you can set to fetch the models and/or fields: http://book.cakephp.org/2.0/en/core-libraries/behaviors/containable.html contain => array( 'Friends' // all fields from related friends results ) contain => array( 'F

Cake 2.1 Events:

2012-01-30 Thread phpMagpie
Book: http://book.cakephp.org/2.0/en/core-libraries/events.html Trying to get to grips with one of the new features of CakePHP 2.1. Have read the above page in the book and want to implement the code shown in the 'Registering Listeners' section but no indication given as to where the followi

Re: cakephp error interrupts my jquery callback

2012-01-30 Thread phpMagpie
If the controller method throws an error it will stop the data being returned correctly and will stop your ajax call from functioning as expacted. You need to figure out why Cake is spitting out "uncaught exception: Invalid JSON" With my jQuery AJAX stuff I return values using: $response

Re: cakephp error interrupts my jquery callback

2012-01-30 Thread phpMagpie
You need to get rid of all the cake errors on a failed save so it only returns {"successful":false} Looks like you have some sort of model/dbo error related to Not-Null-Constraint ... resolve that and all the controller should return true or false and your view can handle the response accordin

  1   2   >