Re: Saving related table data

2010-02-13 Thread WebbedIT
Cake has a steep learning cruve, took me a long time to become fully confident with it, but then you can code so much faster. You have to inform cake of when you are creating or updating a model, and the general rule of thumb is include an id for all models which are being updated and don;t when

Re: Pagination: URL for last page

2010-02-13 Thread WebbedIT
As you need to have queried your dbase to find how many records there are to know what the last page is I am not sure how you can place a permalink to the last page on another site. I can't think of a situation where I would post a link to the last page of a paginated index on another site?!?

Re: simple question about CakePHP syntax

2010-02-13 Thread WebbedIT
This is not a CakePHP question, it is a {HP question. Your two strings are identical, the only difference is your are surrounding them in double quotes the first time and single the second, in neither case are the quotes part of the string. Nice little explanation here:

Re: simple question about CakePHP syntax

2010-02-13 Thread Cristian Cassina
And the big difference is that single quote can't work with variables. For example: $name = 'Cristian'; $string = 'Hi, my name is $name'; echo $string; will output - Hi, my name is $name If you had: $name = 'Cristian'; $string = "Hi, my name is $name"; the echo $string; output would be -

Re: How to include a button which links to a view?

2010-02-13 Thread WebbedIT
You may want to take a look at CSS image replacement techniques at some point too. The following would allow you to use a single 50 x 40px image with 2 states using CSS to move the background image when hovering to show the hover image. Without CSS enabled, i.e. when screen readers and search

Re: confirm message

2010-02-13 Thread WebbedIT
The following would allow you to use a single 50 x 40px image with 2 states using CSS to move the background image when hovering to show the hover image. Without CSS enabled, i.e. when screen readers and search engines view your site, they see a standard text link, but for the majority of users

Re: Creating new rows

2010-02-13 Thread WebbedIT
The main question is, is it supposed to be creating two rows? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send

Re: Creating new rows

2010-02-13 Thread Jeremy Burns
No. Jeremy Burns jeremybu...@me.com On 13 Feb 2010, at 08:20, WebbedIT wrote: The main question is, is it supposed to be creating two rows? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because

parent/child navigation best practices

2010-02-13 Thread bberg
hi, what would be the best approach when creating a navigation system beetwen parent/child relationships? consider this: * Post have many Comment * we list all posts at /posts/index * we list _all_ comments at /comments/index * where do we list comments that belongs _only_ for Post.id=# ?

Re: ACL controlled and slow performance

2010-02-13 Thread cakeFreak
by the way I use cakePHP 1.2.6 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: ACL controlled and slow performance

2010-02-13 Thread Jon Bennett
Any clue on how to speed up things? Try optimising your db tables by adding some indexes, I have http://pastie.org/823086 hth Jon -- jon bennett - www.jben.net - blog.jben.net Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

Re: Creating new rows

2010-02-13 Thread Akeda Bagus
On Fri, Feb 12, 2010 at 6:07 PM, Jeremy Burns jeremybu...@me.com wrote: I have this function in the items model: function addNewItem() {        $this-save();        $itemId = $this-id;        return $itemId; } How your controller called it? -- regards, gedex blog:

Re: Web Service cakePHP

2010-02-13 Thread ivan
What you have link web (URL), where i can see and know teory about webservice in cakePHP? In goole many tutorial but not teory for this topic. I will references this topic to my final task in my university. I very hope you can help me. I'm confuse so searching this topic. In my final task i will

Re: Web Service cakePHP

2010-02-13 Thread ivan
I need a complete theory as WebService cakephp cakephp full theory itself. Please give me solution. thanks before you help me. God Bless You. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you

Re: ACL controlled and slow performance

2010-02-13 Thread cakeFreak
Hey Jon, you are my MySQL performance GURU!!! ;o) Your solution of indexes worked great!! Just a question: why did you opt for InnoDB tables rather than MyISAM? Cheers Daniel Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You

Re: Saas Development

2010-02-13 Thread German M
that is possible. Should create a table groups and table users, then do an intermediate table with the primary keys of both tables. So there you make the association. Company - CompanyXUser - User best regards, German luxorit.com Argentina 2010/2/10 Jacksm ftwo...@gmail.com Hello, I am

Cache help

2010-02-13 Thread Dave
I want to add this in my User model for registrations checking for banned words type thing. $params = array( 'contain' = false, 'fields' = array( 'Restriction.id', 'Restriction.name')); $restrictions = Cache::read('restrictions_cache', 'long'); if (empty($restrictions))

Re: getting Zend Lucene running in CakePHP 1.3

2010-02-13 Thread Zoltan
Ended up finding this code from the source to the book.cakephp.org site: if(function_exists('ini_set')){ ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . APP. 'vendors'); } App::import('Vendor', 'Zend/Search/Lucene',

Re: getting Zend Lucene running in CakePHP 1.3

2010-02-13 Thread Jamie
If you want to compare another use of Zend_Search_Lucene and CakePHP, I wrote a datasource a little while ago. It may give you some ideas: http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/ On Feb 13, 9:19 pm, Zoltan zed...@gmail.com wrote: Ended up finding this code from