RE: set paginator last page as default?

2011-04-21 Thread Krissy Masters
Just curious, show it by created date is that not ordering it by date? K -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of lucas Sent: Thursday, April 21, 2011 2:49 AM To: CakePHP Subject: Re: set paginator last page as default? Hi

Re: Link submission email

2011-04-21 Thread dvvbrook79
Hi Cricket.. Sorry! No i havent tried this Ok so how? and where do i put the above code for this? Thanks again for trying to help, Brook On Apr 20, 11:42 pm, cricket zijn.digi...@gmail.com wrote: Your message is mostly incomprehensible. (For the third time) have you tried debugging

Re: set paginator last page as default?

2011-04-21 Thread Jeremy Burns | Class Outfit
There is usually (always?) a way to do this based on your business rules. If these are transactions of some sort they will have been created in an order. If your table doesn't include a way of tracking creation order I'd go back there first. If this is the result of a stored procedure or query

how to fix it

2011-04-21 Thread taq
i have error Error: Database table posts for model Post was not found. i have follow exaple in the book but repetitive 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

Re: Dynamic table with cakephp

2011-04-21 Thread gannher
On 20 avr, 18:30, cricket zijn.digi...@gmail.com wrote: On Wed, Apr 20, 2011 at 11:33 AM, gannher g.lebo...@gmail.com wrote: Hello My application must create table. It will be done with procedure/ function in mysql. So cakephp doesn't need to send query create table How can I

Re: Dynamic table with cakephp

2011-04-21 Thread gannher
On 21 avr, 10:21, gannher g.lebo...@gmail.com wrote: On 20 avr, 18:30, cricket zijn.digi...@gmail.com wrote: On Wed, Apr 20, 2011 at 11:33 AM, gannher g.lebo...@gmail.com wrote: Hello My application must create table. It will be done with procedure/ function in mysql. So cakephp

Re: Dynamic table with cakephp

2011-04-21 Thread Jeremy Burns | Class Outfit
Please show some more of your code - we're in the dark a bit about what you are trying to do. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 21 Apr 2011, at 09:21, gannher wrote: On 20 avr, 18:30, cricket zijn.digi...@gmail.com wrote: On Wed, Apr 20,

Basic Authentication not working

2011-04-21 Thread hunny
Hi, I used this very basic example from the manual to implement http://book.cakephp.org/view/1309/Basic-HTTP-Authentication. It worked fine on my test server, but when I moved the code to my production server, it has stopped working. It keeps prompting me for the username and password. I have

Re: Dynamic table with cakephp

2011-04-21 Thread hunny
Create a model file (lets call it Dynamic) ?php class Dynamic extens AppModel $useTable = false; ? In your Controller, you can use $this-Dynamic-useTable = 'YOUR_TABLE_NAME'; Thanks. On Apr 21, 1:23 pm, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Please show some

Re: Dynamic table with cakephp

2011-04-21 Thread gannher
On 21 avr, 10:23, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Please show some more of your code - we're in the dark a bit about what you are trying to do. Jeremy Burns Class Outfit jeremybu...@classoutfit.comhttp://www.classoutfit.com On 21 Apr 2011, at 09:21,

Login url redirects to / (for PoundCake plugin)

2011-04-21 Thread Moiz
Hello there, Firstly, I am pretty new to CakePHP. I installed CakePHP and then installed PoundCake plgin for ACL management. I installed and it worked as it should. I created groups, users, assigned roles etc. When I got back next day, and tried to login, the /bcp/users/login would redirect me

Caching + Component Logic

2011-04-21 Thread SquidLiberty
Hi all! I'm trying to implement view caching for the first time and having a bit of trouble. My sites use DarkAuth (http://bit.ly/eTBXXV), a handy little authentication component. The problem is that in my cached layout, cake:nocache has no effect when wrapped around DarkAuth variables because the

Re: how to link css files?

2011-04-21 Thread Otavio Martins Salomao
for link your css file on the page u need link it: ?php echo $html-css(array('cssName1','cssName2')); ? 2011/4/20 cricket zijn.digi...@gmail.com On Wed, Apr 20, 2011 at 9:45 AM, varai vaanip...@gmail.com wrote: Hi, A small mistake, I don't want to specify the width for #navbar and I

Re: Dynamic table with cakephp

2011-04-21 Thread Otavio Martins Salomao
That your table need be in the cakephp convetion, so the name of table in plural and model on singular 2011/4/20 cricket zijn.digi...@gmail.com On Wed, Apr 20, 2011 at 11:33 AM, gannher g.lebo...@gmail.com wrote: Hello My application must create table. It will be done with procedure/

Router:mapResources

2011-04-21 Thread James Gibson
Hi all, First post and I'm a noob, so please excuse my noobness. I would like to use restful urls for my applications html interface. I have found Router:mapResources and this seems to work routing requests to the proper locations. My questions is how do I link to these restful urls from within

Re: UPDATE table

2011-04-21 Thread Jeremy Burns | Class Outfit
I think you are missing some apostrophes and full stops... $this-User-query('UPDATE fociki_quests SET guest_id = ' . $this-user['id'] . ' WHERE id = ' . $user['User']['id']); I'd stick the SQL into a variable first and debug it to screen to check its syntax. Jeremy Burns Class Outfit

UPDATE table

2011-04-21 Thread chris...@yahoo.com
Hi guys,... What am I doin wrong...? Getting this error: Query: UPDATE fociki_quests WHERE id = 155 Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax... $this-User-query('UPDATE fociki_quests

Re: UPDATE table

2011-04-21 Thread euromark
you could also use the cake way: $this-updateAll() On 21 Apr., 12:44, chris...@yahoo.com chris...@yahoo.com wrote: Hi Jermy,.. thanks for reply I have change a little bit but still getting error... $this-Guest-query('UPDATE fociki_quests guest_id = ' . $this- user['id'] . ' . WHERE id

Re: UPDATE table

2011-04-21 Thread mikek
I think you are missing some apostrophes and full stops... $this-User-query('UPDATE fociki_quests SET guest_id = ' . $this-user['id'] . ' WHERE id = ' . $user['User']['id']); I'd stick the SQL into a variable first and debug it to screen to check its syntax. or use a cake syntax

Re: UPDATE table

2011-04-21 Thread chris...@yahoo.com
Hi Jermy,.. thanks for reply I have change a little bit but still getting error... $this-Guest-query('UPDATE fociki_quests guest_id = ' . $this- user['id'] . ' . WHERE id = ' . $user['User']['id']); ?? can some one help? thanks On Apr 21, 2:56 am, Jeremy Burns | Class Outfit

How build a menu?

2011-04-21 Thread Carachi
Hi, I want build a dynamic menu for my website. Can you say me how can I do? There is some tutorial about that? Thank you Bye -- 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: UPDATE table

2011-04-21 Thread chris...@yahoo.com
thank you Mike,... I got a different approach... $this-Session-write('guest', array('guest_id' = $this-user['id'], 'user_id' = $user['User']['id'])); it's working like a Clock... :) thank You All ! On Apr 21, 3:48 am, mi...@brightstorm.co.uk wrote: I think you are missing some apostrophes

Moved Servers

2011-04-21 Thread uzziwozzi
Hi there, Found out about cake PHP today! I have moved a website which I have found is based on the cake framework. I have changed the database configuration files and moved .htaccess files from the original server. When I preview the site, images are missing and I cannot browse to any of

Moved Servers

2011-04-21 Thread bathanza
Hi there, Found out about cake PHP today! I have moved a website which I have found is based on the cake framework. I have changed the database configuration files and moved .htaccess files from the original server. When I preview the site, images are missing and I cannot browse to any of the

Re: how to fix it

2011-04-21 Thread Tilen Majerle
so, table posts in your database doesn't exists :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/4/21 taq taqman...@gmail.com i have error Error: Database table posts for model Post was not found. i have follow exaple in the book but repetitive error -- Our newest site for the

return Json values cakephp 1.3.8

2011-04-21 Thread pedrosas
I need help, I have a script for dependent selects, type country, state, city. In the view of add, works perfectly, but in the edit view, the same code does not work. Firebug seen, does not return JSON data. The only difference I see is in the Data variable in the edit view has values Anyone have

Re: return Json values cakephp 1.3.8

2011-04-21 Thread Miles J
Just echo the json in the action. http://milesj.me/blog/read/63/Doing-AJAX-Calls-In-CakePHP-Part-2-_-The-Controller On Apr 21, 8:57 am, pedrosas pdrsas...@gmail.com wrote: I need help, I have a script for dependent selects, type country, state, city. In the view of add, works perfectly, but in

Re: Basic Authentication not working

2011-04-21 Thread hunny
Hi All, The issues is solved, PHP was running as CGI. Thanks. On Apr 21, 1:26 pm, hunny saurabh85maha...@gmail.com wrote: Hi, I used this very basic example from the manual to implementhttp://book.cakephp.org/view/1309/Basic-HTTP-Authentication. It worked fine on my test server, but