Re: Model associations

2012-08-09 Thread lowpass
I'm not sure I follow all of that but I think what you want is a list of all Categories for the main page, and all Products for a given Category. If that's the case, I would set the main page as CategoryController::index(). This is from one of my projects: Router::connect( '/catalog',

Re: Intermittent cache write failures with files or memcached - NginX, PHP-FPM, Load Balanced

2012-08-09 Thread Dr. Tarique Sani
What is the error you are getting then attempting to re-write cache? OR is it that the code is not reaching the write to cache stage? Tarique On Thu, Aug 9, 2012 at 10:03 PM, Ryan Willis wrote: > Howdy :) > > To give you a feel for the environment, we have a highly available > configuration of t

Re: Cakephp 2.1 Submit Data with ajax

2012-08-09 Thread Ly Dara
Dear, Thanks a lot for your guide can you have time chatting with me. I am appreciate your response. Best Regard, Ly Dara, On Thu, Aug 9, 2012 at 7:45 AM, MetZ wrote: > Here is the solution: > http://whatswhat.no/development/framework/cakephp-2/465-making-a-jquery-ajax-call-with-security-comp

Re: Model associations

2012-08-09 Thread Mark Wratten
Do you have var $belongsTo = array('Category', 'Product'); in your CatProduct model? On Thursday, August 9, 2012 10:43:43 AM UTC-4, André Luis wrote: > > Hi people, it´s me again! > > I am using a habtm relationship in my application, it works 100% fine... > But the Product menu is created dinam

Re: Model associations

2012-08-09 Thread André Luis
I´ve noticed that if i try do use the CatProduct in AppModel, the Product model becomes a AppModel object, and not a Product object anymore =( -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups

Re: Model associations

2012-08-09 Thread André Luis
Now when i try to use the find all in appcontroller it seems to remove my behaviors for latter uses, what i am doing wrong?? -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com. To unsubscri

How do I look a plugin config file?

2012-08-09 Thread Shahruk Khan
My first time converting a PHP class to a CakePHP library! How do I load a configuration file inside the plugin's controller? I am using the MailChimp API Class for PHP. -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send em

Intermittent cache write failures with files or memcached - NginX, PHP-FPM, Load Balanced

2012-08-09 Thread Ryan Willis
Howdy :) To give you a feel for the environment, we have a highly available configuration of two load balanced web servers and two database servers (master/slave). We are using CakePHP 2.2.1 on NginX and PHP-FPM with PHP 5.4. We are noticing intermittent cache write failures despite having trie

Re: Documentation on modifying default REST routes

2012-08-09 Thread Lightee
What if the wanted data to be returned is based on data fields other than the id? It is restricting to get data based on id only. Is there some way to get data based on other fields of the table? The id bit probably means that an id is being sent to the method. A > view method needs an id to re

How override base URL in PaginatorHelper

2012-08-09 Thread Mark Wratten
We are migrating an app from Cake 1.1 to 2.2.1. Our URLs are in the format /state/town/page/slug and I have got the Router setup to forward route correctly, but have not got reverse routing to work yet. In function such as Html->link you can specific the URL as a string or array, so you can set

Re: Problem with controller redirect

2012-08-09 Thread Brian Allemana
Jeremy, That was it! Thank you! The Cake Book says that beforeSave() does not take any arguments, otherwise I would have tried this. I shoulda checked the API to be sure. Cheers, -- Brian Allemana web developer + consultant 773.320.4127 b...@brianallemana.com web: http://www.brianallemana.com

Re: How to call css with ie6 or ie7

2012-08-09 Thread MetZ
kl. 14:48:37 UTC+2 tirsdag 7. august 2012 skrev suttipong Pratum følgende: > > How to coding css with cakePHP > > > > > > > > > thank you > > sodaZa > -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email

Re: Cakephp 2.1 Submit Data with ajax

2012-08-09 Thread MetZ
Here is the solution: http://whatswhat.no/development/framework/cakephp-2/465-making-a-jquery-ajax-call-with-security-component-activated-in-cakephp-2 kl. 09:46:05 UTC+2 torsdag 9. august 2012 skrev Mr. Manager følgende: > > Dear All, > > I have problem with submit data using ajax because I wou

cake_sessions in DB and how do I use the data?

2012-08-09 Thread MetZ
Okei,, so I am trying out the save sessions to DB and make use of them in my views. My cake_sessions table are been updated just fine with my sessions data, but now I am wondering how to access this data. Couple things I want to to is: 1) Display current logged in users => There are 3 logged i

Model associations

2012-08-09 Thread André Luis
Hi people, it´s me again! I am using a habtm relationship in my application, it works 100% fine... But the Product menu is created dinamically with it´s Categories... so i have Product model and the Category model with habtm relationship between them. In AppController i have to set at beforeFi

Re: LESS CSS

2012-08-09 Thread André Luis
Thanks Thiago, i´ve discovered that file.less.css also works fine as less filenams. But thanks a lot!! Em quinta-feira, 19 de julho de 2012 13h29min27s UTC-3, Thiago Belem escreveu: > > He can be using less.js while developing the site.. > > @André > You can do this: > > $t

Re: Router::connect with :action

2012-08-09 Thread André Luis
Also is defining that has parameters, so at least one parameter need to be sent to work this Router... Solution is Custom Routing class, as friend said, OR rewrite this route. Example: Router::connect('/home/vasti',array('plugin'=>'vastipatrak','controller'=>'vastipatraks','action'=>'index'));

Re: Controllers with same name

2012-08-09 Thread André Luis
What i´ve posted couple days ago it was not about controller, was about model, but my problem now was with categories, and i think it´s a issue, since i dont use both controllers with same name at same time... since i´ve disabled the cache, it works 100% fine now. That problem with model i´ve f

Re: Router::connect with :action

2012-08-09 Thread Rodrigo Rodrigues Moyle
There is not a option, if you define a route with /:action you are telling CakePHP the :action param is required. Maybe you try make this route using a custom class. http://book.cakephp.org/2.0/en/development/routing.html#custom-route-classes -- You received this message because you are subscri

Re: CakePdf - How To Start?

2012-08-09 Thread DerekGardiner
I seem to be following in elogic's foot steps and battling with the same issues. Does anyone know of a better tutorial to use than the readme file on GITHUB? Desperately trying to get this plugin to produce a PDF. On Friday, 3 August 2012 07:03:11 UTC+2, elogic wrote: > > I have just downloaded

Re: Documentation on modifying default REST routes

2012-08-09 Thread Mike Griffin
On Thu, Aug 9, 2012 at 1:41 PM, Lightee wrote: > Dear Cakephp gurus, > > Router::resourceMap(array( > array('action' => 'index', 'method' => 'GET', 'id' => false), > array('action' => 'view', 'method' => 'GET', 'id' => true), > array('action' => 'add', 'method' => 'POST', 'id' => fals

Documentation on modifying default REST routes

2012-08-09 Thread Lightee
Dear Cakephp gurus, I am trying to build web services using CakePHP. The default REST routes are not suitable for me as add, edit, update, delete are already taken up for other purposes. I need to modify the default rates. From http://book.cakephp.org/2.0/en/development/rest.html, 'index',

Re: Recursive Retrieval of Data.

2012-08-09 Thread Tilen Majerle
book.cakephp.org => Models => Retrieving your data... -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/9 mohit kumar > Is it possible to retrieve data recursively for related models. > For example, > I have a table with Roster, which has Shifts and each shift has several > users. I want

Recursive Retrieval of Data.

2012-08-09 Thread mohit kumar
Is it possible to retrieve data recursively for related models. For example, I have a table with Roster, which has Shifts and each shift has several users. I want to display Roster --Shift1 User1 User2 UserN Shift2 User1 User2 UserN and so on. How ca

Re:

2012-08-09 Thread Tilen Majerle
http://book.cakephp.org/2.0/en/installation.html -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/8/8 vikram sharma > Hello > Any body Suggest me to easy way installation of cake php > > > -- > You received this message because you are subscribed to the Google Groups > "CakePHP" group

Re: Problem encountered: about passing multiple paramters from view (html helper: link) to an action ($arg1 = null, $arg2 = null) that the passed parameter became empty & null strings

2012-08-09 Thread Tilen Majerle
if you want to fetch like this, try this Html->link($this->Andante->fetchLanguage('aside_addasfriend', $opt_as), array('controller' => 'relationships', 'action' => 'addfriend', $current_user['id'], $user_data['User']['id']), array('class' => 'btn')); ?> -- Lep pozdrav, Tilen Majerle http://majerl

Re: Fat CakePHP

2012-08-09 Thread Sanjeev Divekar
Hi, 9$ means approx 506 INR in this cost I am getting 512 kbps internet through cable model in Mumbai which is biggest city in India. Any way I'd like thanks everybody for sharing your views on CakePHP Lite Idea. Regards, On Thu, Aug 9, 2012 at 1:16 PM, Борислав Събев wrote: > @gremlin totally

Does CakePHP convention require primary key to be auto-incrementing?

2012-08-09 Thread Lightee
Dear CakePHP gurus, I am using cakephp scaffolding feature to build a basic CRUD application. I have a table which gives problem when adding new record. I discover that the reason is that the primary key is not auto-incremented. May I know whether this is part of CakePHP convention that primary

Cakephp 2.1 Submit Data with ajax

2012-08-09 Thread Mr. Manager
Dear All, I have problem with submit data using ajax because I would like user to submit data of one field in my table and that value will search condition from table in insert the whole record into another table. I am looking forward to hearing from you as possible. Sincerely Yours, Ly Dara,

Re: Fat CakePHP

2012-08-09 Thread Борислав Събев
@gremlin totally on target! There is nothing I'd like to add after the discussion went this way, but It is really, really, really important to have a nice uplink speed for your development. I for example have a 2 fiber optical connection coming in to my home office and it costs me next to nothi

Re: Problem with controller redirect

2012-08-09 Thread Jeremy Burns | Class Outfit
Not sure if the issue is the same, but I was getting issues with beforeSave() on PHP 5.4.4. The beforeSave() function must have parameters set the same as parent:beforeSave() - in other words public function beforeSave($options = array()) {} - give that a try. Jeremy Burns Class Outfit http://