Re: call components from shell.

2011-10-06 Thread iphone5
Also Can't even save the model in cake. $rpg[ 'ReviewPanelGroup' ][ 'account_id' ] = $account_id; $rpg[ 'ReviewPanelGroup' ][ 'department_id' ] = $department_id; $rpg[ 'ReviewPanelGroup' ][ 'survey_id' ] = $review_id; $this -> ReviewPanelGroup -> save( $rpg ); Is there anyway to split out the SQ

Re: CakePHP and other frameworks

2011-10-06 Thread gimmebucks
Yes and i always use css framework like blueprint css and 1140 css with my CakePHP project without any issues. On Oct 6, 10:53 pm, zer0_gravity wrote: > Greetings, > Question can CakePHP made to work with other CSS Framework > (Elements,Blueprint etc) without breaking the CakePHP convention? --

Re: Configuring sessions on Memcached/Membase with CakePHP 2.0RC2 - Getting errors

2011-10-06 Thread Chris Cinelli
Thank you. Just to be sure... What I wrote here, is it the right way to set up cakephp to use memcached for sessions? Also if I set _core_ Cache to use memcached, is cakephp going to use memcache to cache the ->find calls? On Oct 6, 2011 8:41 PM, "José Lorenzo" wrote: > The bug was fixed in la

call components from shell.

2011-10-06 Thread iphone5
Within my Employee Manager Component, I have the folowing function . function get_manager( $department ){ $this -> controller -> loadModel( "Account" ); $this -> controller -> Account -> useDbConfig = $this -> controller -> db_name; $sql = "SELECT * FROM accounts Account LEFT JOIN account_roles A

Re: Configuring sessions on Memcached/Membase with CakePHP 2.0RC2 - Getting errors

2011-10-06 Thread José Lorenzo
The bug was fixed in lastest commit in cakephp repo. Thanks a lot for reporting it. -- 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 un

Re: same issue

2011-10-06 Thread O.J. Tibi
Troll. Meh. -- 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+unsubscr...@googlegroup

RE: same issue

2011-10-06 Thread Meroe Kush
Is there a valid question buried in here somewhere? From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Yves S. Garret Sent: Thursday, October 06, 2011 9:27 AM To: cake-php@googlegroups.com Subject: Re: same issue Never had an issue with a Dell :-) . Well..

Re: CakePHP and other frameworks

2011-10-06 Thread O.J. Tibi
I don't see that it would be an issue, all the frameworks you mentioned are CSS frameworks, and are only tied to the presentation logic of your application. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.

cakephp in a joomla wrapper and iframe issues

2011-10-06 Thread RG
Hi all, we are building a subscription site and like some of the joomla commercial components for managing the subscription but need to build some complicated music and video pages which are perfect for Cake. After looking at some of the joomla/ cake solutions (Jake etc), I'm leaning towards the

cakephp + database UI

2011-10-06 Thread aortizhi
Hi, first of all, let me thank you all for the support i've recieved so far. Now i have a question that maybe, you guys can give me a hand. Is It there a component or something like it, that can help me out to give to my webapp's users an interface that can show all database tables and at the same

Re: Best practice? Building a search string with multiple options

2011-10-06 Thread majna
You can use "named params", as in https://github.com/CakeDC/search -- 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 thi

Re: Configuring sessions on Memcached/Membase with CakePHP 2.0RC2 - Getting errors

2011-10-06 Thread José Lorenzo
I can confirm this bug, I'll keep you posted -- 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

Re: Configuring sessions on Memcached/Membase with CakePHP 2.0RC2 - Getting errors

2011-10-06 Thread José Lorenzo
That looks like a very odd error. What version of php are you using? can you paste the complete core.php file in the cakephp bin? -- 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

Configuring sessions on Memcached/Membase with CakePHP 2.0RC2 - Getting errors

2011-10-06 Thread Chris Cinelli
I tried to set up sessions with memchaced and I am getting an error (plus sessions do not seem to work). I read : https://github.com/cakephp/docs/blob/master/en/development/sessions.rst It does not talk of session on memcached in specific but maybe adding it to the doc would be good ;-) I tested m

Best practice? Building a search string with multiple options

2011-10-06 Thread heohni
Hi, I have a search where you can select various filters. I wonder how I should build the params to pass them to the search function. I currently use this way: /search/cat:x/ => category:id /search/city/ber:x or /cityreg/x => city/suburb:id /search/price:x/ => price:from value /search/ref:x/ =>

Problems with HABTM Pagnitaion and i18n

2011-10-06 Thread Jörg
Hello all, i need help. I had a brand model with $hasAndBelongsToMany = array('Category'); Category is a model with the translation on the field 'name' Now depending on a category filter in a searchbox I want to identify which brands are in the search area and which other catgeories are assigned

Re: Make link disabled

2011-10-06 Thread Dominik Gajewski
Thanks for your help. I decided to do it via substitution link of . 2011/10/2 euromark : > or use 'javascript:void(0)' as link > > > On 1 Okt., 22:09, Ryan Schmidt wrote: >> On Oct 1, 2011, at 13:47, Dominik Gajewski wrote: >> >> > How to make in Cake link disabled?? >> > Html->link('name',      

Re: Cake 2.0 RC3 / PHPUnit - How to make mock for a model?

2011-10-06 Thread José Lorenzo
Mocks should be done inside each test method, but if you are doing them inside setUp() then, you should not specify the class name for the mock, because you will get duplicate defined class errors. So lets say you want to mock the save method for a model App::uses('User', 'Model') //It is impor

CakePHP and other frameworks

2011-10-06 Thread zer0_gravity
Greetings, Question can CakePHP made to work with other CSS Framework (Elements,Blueprint etc) without breaking the CakePHP convention? -- 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 ot

Creating Alias and association in model

2011-10-06 Thread zer0_gravity
Is 'MyRecipe' , 'Member' and 'MemberOf' alias for the model association and will all the aliases listed work? 'Recipe', ); var $hasAndBelongsToMany => array('Member' => 'User'); } class Group extends AppModel { var $name = 'Group'; var $hasMany = array( 'MyRecipe' => arra

Re: Best practice for pending/approved flag for comments in a blog

2011-10-06 Thread Austin Pickett
Have you tried using disqus plugin? It works rather smoothly. On Oct 6, 2011 10:13 AM, "Jeremy Burns | Class Outfit" < jeremybu...@classoutfit.com> wrote: > You might want to consider a field for the id of the reviewer, something to indicate their decision (they might decline it) and the time/date

Re: Best practice for pending/approved flag for comments in a blog

2011-10-06 Thread Jeremy Burns | Class Outfit
You might want to consider a field for the id of the reviewer, something to indicate their decision (they might decline it) and the time/date of that decision. Jeremy Burns Class Outfit Tel: +44 (0) 208 123 3822 Mob: +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com On 6 Oct 2

Re: Best practice for pending/approved flag for comments in a blog

2011-10-06 Thread Boyan Penev
Thank you both for the useful help. Regards, Boyan On Thu, Oct 6, 2011 at 3:36 PM, euromark wrote: > it seems a simply boolean (tinyint 1) is enough in your case > > > On 6 Okt., 15:14, Zaky Katalan-Ezra wrote: >> You can review CakeDC comments pluginhttps://github.com/CakeDC/comments >> >> >>

Re: Best practice for pending/approved flag for comments in a blog

2011-10-06 Thread euromark
it seems a simply boolean (tinyint 1) is enough in your case On 6 Okt., 15:14, Zaky Katalan-Ezra wrote: > You can review CakeDC comments pluginhttps://github.com/CakeDC/comments > > > > > > > > On Wed, Oct 5, 2011 at 11:02 AM, Boyan wrote: > > Hello, > > > I am trying to develop a blog- like ap

Re: same issue

2011-10-06 Thread Yves S. Garret
Never had an issue with a Dell :-) . Well... hardware. The software aspect is much easier to fix. On Thu, Oct 6, 2011 at 9:25 AM, AD7six wrote: > > > On Oct 5, 10:28 pm, billy wrote: > > anyone? > > You turned it on, went to make a cup of tea, came back to find your > computer exploded aswell

Re: same issue

2011-10-06 Thread AD7six
On Oct 5, 10:28 pm, billy wrote: > anyone? You turned it on, went to make a cup of tea, came back to find your computer exploded aswell? Small world, last time i buy a dell too AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

Re: same issue

2011-10-06 Thread Yves S. Garret
... what would the issue be? On Wed, Oct 5, 2011 at 4:28 PM, billy wrote: > anyone? > > -- > 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: Best practice for pending/approved flag for comments in a blog

2011-10-06 Thread Zaky Katalan-Ezra
You can review CakeDC comments plugin https://github.com/CakeDC/comments On Wed, Oct 5, 2011 at 11:02 AM, Boyan wrote: > Hello, > > I am trying to develop a blog- like application with Cakephp and have > a rather general question. > The comments for each post should be first reviewed by the auth

Showing session errors on hosting to Fatcow Domain Server

2011-10-06 Thread Joffin Joy
Hi Sir, I uploaded my cakephp 1.3 web application into the new shared server provided by fatcow. But am getting few errors after uploading into the server. Below is the site URL: http://contractngo.com/ The errors are listed below: Warning (2): session_start() [function.session-start]: open(/v

Cake 2.0 RC3 / PHPUnit - How to make mock for a model?

2011-10-06 Thread Sway
Hi, I have a problem with creating mocks for models which have related models. Models looks like: class User extends AppModel { public $hasAndBelongsToMany = array( 'RatePlan', ); } class RatePlan extends AppModel { public $hasAndBelongsToMany = array( 'User', )

same issue

2011-10-06 Thread billy
anyone? -- 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+unsubscr...@googlegroups.co

How REST works in Cake (how to have REST with CAKE :-) )

2011-10-06 Thread basav
Hi I am new to CakePHP (to PHP itself, mother tongue is C++) I am trying to understand the some depth knowledge of working of REST in cake php Specific questions - How CakePHP has frameworkised the REST routing/controller to map to exact URIs and/or to its Resources - I Like to understand its (a

Best practice for pending/approved flag for comments in a blog

2011-10-06 Thread Boyan
Hello, I am trying to develop a blog- like application with Cakephp and have a rather general question. The comments for each post should be first reviewed by the author of the post, before becoming visible (Comment belongsTo Article, Comment belongsTo User, Post belongsTo User) So my question is

Re: Force Trailing Slash and No WWW

2011-10-06 Thread vaughany
I work at a UK college and we have a large number of 'web products' on their own subdomains along the lines of product.college.ac.uk, someproduct.college.ac.uk. You would not believe how many people assume the domain name, no matter what it is, has to have www. written in front of it to work pr

Re: Got a problem with delete()

2011-10-06 Thread Jeremy Burns | Class Outfit
Do you have any referential integrity (cart items, for example) that are preventing the delete at the db level? What happens if you delete the row directly at the db level? Jeremy Burns Class Outfit http://www.classoutfit.com On 6 Oct 2011, at 11:26, heohni wrote: > Hi, > > my users are able

Got a problem with delete()

2011-10-06 Thread heohni
Hi, my users are able to save items to cart, and when I want to delete them, I do a find to find the items id first: $prid = $this->Bookmark->find('first', array('conditions' => array('mez_fkid_ben_id = '. $this->Auth->user('ben_id'), 'mez_fkid_obj_id = '. $id))); the passed $id is the item id.

Re: I can find() but can't save(), why?

2011-10-06 Thread AD7six
On Oct 6, 11:19 am, Jens Dittrich wrote: > probably the obvious, debug the output of the save function. save() is a function written in php - a language I would hope Reynier is familiar with - Look for it, and figure out why it's doing what you're observing. Then "Oh...", slap forehead, fix it,

Re: I can find() but can't save(), why?

2011-10-06 Thread Jens Dittrich
probably the obvious, debug the output of the save function. -- 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 grou