Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread José Lorenzo
You have a whitespace at the en of the file. Erase it... On Oct 4, 11:01 am, val <[EMAIL PROTECTED]> wrote: > Instead redirecting, i get this.. Any Ideas? > > login.thml: > if ($error) > { > e('Invalid Login.');} > > ?> > > Please log in. > > > form('/users/login') ?> > Username: > input('U

Re: Why I get this: Warning: Cannot modify header information - headers already sent by (output started at /var/www/cake/app/models/user.php:13) in /var/www/cake/cake/libs/controller/controller.php on

2007-10-04 Thread José Lorenzo
You have a whitespace at the end of the file. Erase it. On Oct 4, 11:01 am, val <[EMAIL PROTECTED]> wrote: > Instead redirecting, i get this.. Any Ideas? > > login.thml: > if ($error) > { > e('Invalid Login.');} > > ?> > > Please log in. > > > form('/users/login') ?> > Username: > input('Us

Re: Why CakePHP always uses var?

2008-05-21 Thread José Lorenzo
var was undeprecated on 5.2 On May 22, 12:03 pm, mustan9 <[EMAIL PROTECTED]> wrote: > Hi, > > The var keyword is deprecated in PHP5. The Cake documentation and > source code constantly use this keyword to define properties for > classes. The documentation should be changed, and all references to

Re: A couple thoughts? Your suggestions?

2008-05-21 Thread José Lorenzo
On May 21, 4:40 pm, rloaderro <[EMAIL PROTECTED]> wrote: > Hello, I am a big fan of Cake. Recently I have been having to use > other MVC frameworks and came across a couple bits that I would love > to see duplicated in Cake (my framework of choice). > > - Symfony function name caching > > When Sy

Re: Most elegant way to add a parameter to url

2008-05-25 Thread José Lorenzo
I think this is currently possible $form->create('Post',array('url' =>array('named' => value))) will produce /posts/add/named:value On May 26, 12:59 pm, mmalca <[EMAIL PROTECTED]> wrote: > I have following situation: > 1. i have a hidden field in a form in which I store referer (for me to > know

Re: Comments plugins

2011-01-04 Thread José Lorenzo
Hi Jhon, It looks like you have not configured properly the component or behavior. Could you please join the #cakedc irc channel in order to get help with this plugin? We will be waiting for you to offer any help you need. Cheers. On Jan 4, 11:32 am, John Maxim wrote: > Hi the below is exactly

Re: 2.0.0 dev sturtup problem

2011-01-04 Thread José Lorenzo
This error was already fixed in the lasted revision, if you want to stay with latest changes please checkout the 2.0 branch using git. Thanks! On Jan 4, 4:50 am, ennosun wrote: > Hi Tomasz, > > I think cakephp does not use the database file because a print_r on > the $this object tells me, that

Re: ACL Tutorial SQL statements

2011-02-07 Thread José Lorenzo
This issue was recently fixed, please visit the book page again to see correct code samples On Feb 7, 11:32 am, Cyrus wrote: > Im not quite sure if I just don't see it, but > inhttp://book.cakephp.org/view/1543/Simple-Acl-controlled-Application#!... > it says " Execute the following SQL statemen

Re: Problem importing Comments Behavior Class in Controller class

2011-09-26 Thread José Lorenzo
How did you download the project, and where did you put the files? -- 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: One core, multiple apps, shared classes

2011-10-03 Thread José Lorenzo
Yes it is possible. What is your particular problem? -- 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

CakePHP 2.0.0-RC3 freshly sliced

2011-10-03 Thread José Lorenzo
The CakePHP core team is proud to announce the immediate availability of CakePHP 2.0.0-RC3[1]. 2.0.0-RC3 marks the end of the release candidates for 2.0.0. If no critical issues arise during the life time of the RC, we should expect a stable release really soon. As usual, mo additional new fea

Re: data source not properly quoting casted fields in conditions array

2011-10-05 Thread José Lorenzo
You need to use $this->getDatasource()->expression() for those cases. CakePHP does not handle all database details such as explicit casting. It might be better to define an implicit cast function inside postgresql. Cheers -- Our newest site for the community: CakePHP Video Tutorials http://tv

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

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

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
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: Configuring sessions on Memcached/Membase with CakePHP 2.0RC2 - Getting errors

2011-10-07 Thread José Lorenzo
Yes, your configuration looks fine. I would not advise using memcache for the _core_ cache configuration, it is better to use APC, although it will still work fine and fast with memcache. CakePHP does not cache find() calls, that is a task left for the developer. -- Our newest site for the com

Re: CakePHP 2: Where to place exception code?

2011-10-13 Thread José Lorenzo
My standard is just as Elte Hupkes* *pointed out: App::uses('MyException', 'Error/Exception'); at the beginning of the class that will throw it and put the exception class in app/Lib/Error/Exception Cheers! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org C

Re: ClassRegistry::init and Model function availability problem

2011-10-13 Thread José Lorenzo
I don't know where your problems stems, but I know why you are seeing that issue. ClassRegistry::init looks first if a model with that name is already loaded, if it is, then it returns the already created instance. If it is not there already, it will do an App::import() internally to look for th

Re: ClassRegistry::init and Model function availability problem

2011-10-14 Thread José Lorenzo
It is possible that having the model there is causing the issue. But I'm not sure. It might be worth trying to put it in /modes to see if it works. I'm glad it's working now :) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questi

Re: Troubles with Cake 2.0 + SQLServer datasource

2011-10-14 Thread José Lorenzo
I think you are confusing the mssql driver with the SqlSrv driver. There is no mssql in CakePHP 2.0. Sorry about that -- 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

Re: 2.0 Upgrade Problem (with $controller->request in RequestHandlerComponent)

2011-10-17 Thread José Lorenzo
yes, it is open for edition, through github pull requests https://github.com/cakephp/docs -- 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: cakephp and security

2011-10-18 Thread José Lorenzo
What global variables -- 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

Re: SQLite and database exceptions.

2011-10-18 Thread José Lorenzo
Use try-catch. Alternatively, override save() in AppModel and tor try { parent::save()} catch (Exception $e) { //do something } -- 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: Problem generating view for REST webservice in cakephp 2.0

2011-10-18 Thread José Lorenzo
Can you post the data in $logs ? -- 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: LDAP datasources

2011-10-19 Thread José Lorenzo
I think you can get it working with very minor changes. It just need proper accessors (public, protected, private) importing the datasource class (App::uses('DataSource', 'Model/Datasource')) and I think that's it give it a try! -- Our newest site for the community: CakePHP Video Tutorials

Re: using App::build in cakephp 2.0 to specify a path for plugins

2011-10-19 Thread José Lorenzo
You are missing a trailing slash in you App::build() path -- 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,

Re: CakePHP 2.0.0 release

2011-10-19 Thread José Lorenzo
Can you link to your hosting provider web page? also... can you paste the complete phpinfo() ? -- 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: 2.0 view folders naming convention

2011-10-20 Thread José Lorenzo
They match the controller name, yes. As in the past -- 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 e

Re: Can't get Plugin model to work / be noticed at all

2011-10-20 Thread José Lorenzo
App::uses('CalendarAppModel', 'Calendar.Model') in each model in your plugin should do the trick :) -- 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 qu

Re: Modify default “baked” templates in 2.0

2011-10-21 Thread José Lorenzo
app/Console/Templates/* -- 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...

Re: 2.0 view folders naming convention

2011-10-21 Thread José Lorenzo
Well, good luck with future project in Symfony, Zend, I'm sure you will be hitting the shift key a lot less! -- 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: Can't get Plugin model to work / be noticed at all

2011-10-21 Thread José Lorenzo
Well, it happens because in certain pages you visit some classes are loaded and in other pages it could load different ones. The cache will be written (appending new classes) every time, but in debug mode it gets cleaned after a short period, hence the erratic behavior of sometimes being able to

Re: 2.0 view folders naming convention

2011-10-21 Thread José Lorenzo
Basically it just started with folder CamelCased when they only contained php classes. But shortly after we realized that half the folders where in uppercase and the other in the old standard. It looked really odd, and would make developers have to remember more conventions, so it was decided to

Re: Modify default “baked” templates in 2.0

2011-10-21 Thread José Lorenzo
Actually, it could potentially have classes inside. But while being an edge case, we decided to keep everything as much uniform as possible, mixing camelcase and underscore in the same folder looked really odd when we started, so we settled for only one standard. See my response in the other po

Re: cakephp 2.0 Cookbook blog tutorial - problem with autentication component

2011-10-24 Thread José Lorenzo
Did you finish the tutorial? In the following lines it is explained how to allow access to post adding and editing. -- 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 Ca

Re: Any word on the CakePHP Training?

2011-10-24 Thread José Lorenzo
It will be available very soon, hopefully for next week or so. We are working on the training materials and defining the contents for each session. Thanks for your interest! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions

Re: Exceptions, best practice

2011-10-24 Thread José Lorenzo
The exception handler is a last resource mechanism. You should always use a try catch unless you think than presenting an error page to the user is the best thing to do. otherwise, if you can handle the exception and recover from it, you should do so. There are very clever ways of using the exc

Re: using components inside custom authorize object (CakePHP 2)

2011-10-25 Thread José Lorenzo
In any method of your custom object you ca do something like this, it will load the component or return the already instantiated one. $session = $this->_Collection->load('Session'); -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

Re: Data Mapper Pattern in 2.X?

2011-10-25 Thread José Lorenzo
Take a look at this video, it is a plugin I did for using the datamapper pattern in CakePHP and MongoDB as a datasource: http://tv.cakephp.org/video/CakeFoundation/2011/10/06/using_the_mongocake_plugin_for_cakephp_2_0_-_by_jose_lorenzo_rodriguez -- Our newest site for the community: CakePHP Vid

CakePHP 2.0.1 is out!

2011-10-30 Thread José Lorenzo
The CakePHP core team is proud to announce the immediate availability of CakePHP 2.0.1 [1]. 2.0.1 is the first bugfix/maintenance release for the 2.0 branch. Since the very well received release of 2.0 stable two weeks ago there have been 95 commits, and 6 issues resolved. For people still hesi

Re: Cakephp 1.3 not logging when debug set to 1 or 2

2011-11-02 Thread José Lorenzo
Just tested it in a clean cakephp 1.3.13 install and works fine. -- 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

CakePHP 2.0.2 released

2011-11-02 Thread José Lorenzo
The CakePHP core team is proud to announce the immediate availability of CakePHP 2.0.2 [1]. We saw the need to release this version after a bug that was introduced in the 2.0.1 version regarding the calculation of the Content-Length header. This bug can cause unexpected errors in the ouput su

Re: Problem with echo in the controllers with CakePHP 2.0.1 and 2.0.2 on NGINX

2011-11-04 Thread José Lorenzo
This issue was resolved yesterday, please checkout the latest code in the 2.0 branch -- 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 u

Re: Class 'File' not Found / Class 'Folder' not found in Version 2.0 (worked OK in version 1.3)

2011-11-07 Thread José Lorenzo
where's the pull request? -- 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.

Re: SecurityComponent + External POST

2011-11-07 Thread José Lorenzo
Try $this->Components->disable('Security') -- 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 c

Re: Scheduled day for 2.0.3 release?

2011-11-10 Thread José Lorenzo
This weekend -- 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...@googlegrou

CakePHP 2.0.3 out of the oven

2011-11-13 Thread José Lorenzo
The CakePHP core team is proud to announce the immediate availability of CakePHP 2.0.3 [1]. A lot has happened in the PHP world since our last release, this new version incorporates all needed changes needed to adapt to the ever evolving world of PHP frameworks. One of the big changes out the

Re: ACL group based permission + Auth Component

2011-11-24 Thread José Lorenzo
It is possible via creating a custom Authorization object, those objects act as plugins for the AuthComponent so you would not need any changes in the usual way you work with Auth. The main question is, do you really need ACL? I've seen lots of people wondering about ACL and after a short talk

Re: Creating a mocked model uses default database instead of test in PHPUnit

2011-11-24 Thread José Lorenzo
When mocking a model it is recommended that you pass the correct parameters to the contstructor: $this->User = $this->getMock('User', array('_saveUploadedFile', '_removeUploadedFile'), array(false, 'users', 'test')); The third parameter indicates that you want to use the 'users' table and th

Re: plugin uses (wrong) app controller

2011-11-24 Thread José Lorenzo
Sorry, duplicate classnames are not allowed by PHP. Cake is not failing hard with a fatal error in your case because it caches the classname location for future uses, so the first one accessed wins. If you had multiple classes with the same name PHP would throw a fatal error if both classes get

Re: Observer Pattern in CakePHP 2.0

2011-11-24 Thread José Lorenzo
You might want to take a look at this plugin to get an idea of how to implement it http://cakealot.com/2009/04/eventful-a-cakephp-event-system/ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

CakePHP 2.0.4 released

2011-11-28 Thread José Lorenzo
The CakePHP core team is proud to announce the immediate availability of CakePHP 2.0.3 [1]. A lot has happened in the PHP world since our last release, this new version incorporates all needed changes needed to adapt to the ever evolving world of PHP frameworks. One of the big changes out there

Re: CakePHP 2.0.4 released

2011-11-28 Thread José Lorenzo
Sorry About the mixup, that was the announcement for 2.0.4. Here is the real one: The CakePHP core team is proud to announce the immediate availability of CakePHP 2.0.4 [1]. This release fixes an important security issue in the AuthComponent. Prior to this version, the AuthComponent will let no

Re: CakePHP 2.0 - Testing InnoDB transactions while using schema importing - is this possible?

2011-11-28 Thread José Lorenzo
The only way you can override that using schema importing is implemeting the create() funciton in your fixture: class MyFixture extends CakeTestFixture function create($db) { $this->fields['tableParameters']['engine'] = 'InnoDB'; return parent::create($db) } -- Our newest site for the

Re: How to add a fixture to a plugin test?

2011-11-28 Thread José Lorenzo
this should just work, what error are you getting? -- 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 em

Re: Write unit test for a controller that uses AuthComponent in CakePHP 2.0.3

2011-12-02 Thread José Lorenzo
You also need to mock the models: $this->controller = $this->generate('Users', array( 'components' => array('Auth' => array('user')), 'models' => array('User' => array('save')) // We mock the User Model's save method )); -- Our newest site for the community: CakePHP Video T

Re: ACL + Auth = Headache

2011-12-06 Thread José Lorenzo
Yes, it works because you have disabled the ACL :) -- 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 em

Re: Edit an object without creating it

2011-12-07 Thread José Lorenzo
You can throw exceptions on you model for flow control, it's pretty handy, I've been doing it since a couple of years ago -- 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 th

Re: Cake 2.0 documentation

2011-12-07 Thread José Lorenzo
Got to repository in github, browse the file you need to change, click edit and that's it. If you need to do changes to the layout, I would suggest to download the source, and follow the instructions to get it running. -- Our newest site for the community: CakePHP Video Tutorials http://tv.ca

Re: Cake 2.0 documentation

2011-12-07 Thread José Lorenzo
Oh, and after having it locally, make changes to it and push to your fork in github. The rest is just doing a pull request to us. Please let me know if you need help with anything. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Qu

Re: Model Test Case SQL Error

2011-12-08 Thread José Lorenzo
Well, the 'bit' column is not officially supported, so it interpreted it as binary. The best of doing booleans is with tinyint(1) -- 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: Problems with ajax and security component.

2011-12-08 Thread José Lorenzo
set 'validatePost' => false for the security component in that action -- 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

Re: Broken link on 2.0 Cookbook (upgrade shell)

2011-12-10 Thread José Lorenzo
Thanks for reporting, this issue has been fixed. -- 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 emai

Re: setting a custom P3P header

2011-12-10 Thread José Lorenzo
Just do it header('P3P: ...'), the call to header() will override any previous calls for the same header. You will probably want to use the response object for that. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site ht

Re: Rollback on PDOException

2011-12-12 Thread José Lorenzo
Not all databases support transactions, and not all requests begin with one. So it would make sense for you to do it in your models, I don't see cake handling that automatically. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Ques

Re: Paginator issue resolved: Incorrect documentation

2011-12-12 Thread José Lorenzo
Can you please add the changes to the book yourself? that would be greatly appreciated -- 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

Re: cake2: question about caching

2011-12-16 Thread José Lorenzo
Is that in CakePHP 2.0? -- 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...

Re: Using encryption to verify parameters

2011-12-18 Thread José Lorenzo
I think the reasons for doing this are very narrow. But if you are absolutely positive that you need to do it, then the best way would be to not encrypt the url at all! Encryption can be broken with some level of effort. My suggestion would be to create urls like tinyurl does, store the params

Re: schema shell for cakephp 2 - migrate new tables?

2011-12-18 Thread José Lorenzo
Use the migrations plugin, it is a more complete solution. https://github.com/CakeDC/migrations/tree/2.0 -- 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: Multi-level Authorization?

2011-12-19 Thread José Lorenzo
$this-> Auth-> login($this -> request -> data) should be just $this-> Auth-> login() If you pass any data to login() that is what it will be stored in the session, whereas if you call it with no parameters, the it will copy the database data to the session. -- Our newest site for the communit

Re: HABTM example for CakeDC Search plugin

2011-12-20 Thread José Lorenzo
Did you read this? http://cakedc.com/downloads/view/cakephp_search_plugin -- 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: What's all this SQL being run when running a controller unit test plan?

2011-12-20 Thread José Lorenzo
Those queries are generated by the fixtures in your app, those classes generate fake model data in separate tables in order to test the features safely. Although if you did not know about it, then those queries are being run on your main database!! (with a table prefix in order to preserve the

Re: What's all this SQL being run when running a controller unit test plan?

2011-12-20 Thread José Lorenzo
Comparing floats in PHP is super annoying, go to the line that is comparing those 2 numbers and cast both values as string. $this->assertEqual((string) $value1, (string) $value2); -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Qu

Re: Store Plaintext Password on login

2011-12-20 Thread José Lorenzo
read $this->data in beforeFilter(), the password will be plain text there. -- 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: Organizing Controllers into subfolders in CakePHP 2

2011-12-20 Thread José Lorenzo
I would use plugins, it is a very natural way of organizing related code into logical and reusable chunks -- 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 rela

Re: Problem with transaction in version 2.0

2011-12-21 Thread José Lorenzo
Only the model queries and those you manually do with query() will be logged. There is actually no reason for that, except that it make logs a lot more cleaner. If you think transaction queries should be logged, please open a ticket explaining your use case. -- Our newest site for the communit

Re: Function isOwnedBy

2012-01-04 Thread José Lorenzo
Try to debug the params that the isOwnedBy() function got, and see if they are what you expect them to be -- 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 rela

Re: Accessing a Controller method's CakeRequest object inside custom ExceptionHandler on Cake 2.0.5?

2012-01-04 Thread José Lorenzo
You can instantiate a new one: $request = new CakeRequest(); -- 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 gro

Re: Accessing a Controller method's CakeRequest object inside custom ExceptionHandler on Cake 2.0.5?

2012-01-04 Thread José Lorenzo
Btw, in CakePHP 2.1 the errors will be rendered using the accept content type from the browser! Just what you are trying to do in 2.0. -- 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

Re: CakePHP 1.3, 2.0 and SqlServer views

2012-01-04 Thread José Lorenzo
Probably no, can you submit a patch and a test? -- 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

Re: How to change $model->_schema in 2.0

2012-01-05 Thread José Lorenzo
Expose a method in your model having that line you want to execute. You will be able to execute the method from outside the model instance. -- 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 he

Re: How to change $model->_schema in 2.0

2012-01-06 Thread José Lorenzo
protected means it can be accessed in subclasses, but not from the outside. I really don't see a valid use case for altering the schema from the outside, that is why the schema property is protected. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out

CakePHP 2.1-alpha just baked

2012-01-08 Thread José Lorenzo
The CakePHP core team is proud to announce the immediate availability of CakePHP 2.1.0 alpha [1]. Version 2.1 is fully backwards compatible with 2.0.x release. This means that if you have an app already working in 2.0 or plan to upgrade one to it, you can safely start using 2.1 right away and

Re: Starting with 1.13 or 2.0

2012-01-08 Thread José Lorenzo
2.0 -- 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.com Fo

Re: CakePHP 2.1-alpha just baked

2012-01-09 Thread José Lorenzo
Here is the 2.1 migraion guide http://book.cakephp.org/2.0/en/appendices/2-1-migration-guide.html Both "issues" are described there, just update the code accordingly. I think those two ware the only update that are not fully compatible with 2.0 -- Our newest site for the community: CakePHP Vid

Re: Asset filtering CakePHP 2.0.5 / css.php not included anymore?

2012-01-09 Thread José Lorenzo
Use more advanced solutions like the AssetCompress plugin github.com/markstory/asset_compress -- 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 question

Re: missing plugin exception

2012-01-10 Thread José Lorenzo
http://www.domain.com//index.php notice the double // it looks like either the search engine is doing dumb requests or you have a bad link in your site wich is being followed by the spider. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new C

Re: Custom Find Type & Pagination Problem - CakePHP 2.0.5

2012-01-18 Thread José Lorenzo
Check this out, this will solve your problem: https://github.com/cakephp/CakeFest-2010-Workshop/blob/master/models/event.php#L88 -- 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: cakeDC utils csvImport - extra record

2012-01-18 Thread José Lorenzo
probably an extra line in your CSV file -- 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: Starting with 1.13 or 2.0

2012-01-18 Thread José Lorenzo
2.0, no doubt! -- 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...@googlegr

Re: cakeDC utils csvImport - extra record

2012-01-19 Thread José Lorenzo
Not much, you should debug into the behavior to see where it is trying to add a blank row. I've used it many times in the past without any issues -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

Re: Cakephp 2.0.5 Auth component problem.

2012-01-22 Thread José Lorenzo
Most probably you have trailing whitespace before of after the php tags in your classes. Use the DebugKit whitespace shell to remove them. You may also want to change the session settings in core.php, usually setting 'checkAgent' => false solves some issues. -- Our newest site for the communit

Re: IIS7 + CakePhp

2012-01-22 Thread José Lorenzo
You need this: http://book.cakephp.org/2.0/en/installation/advanced-installation.html#url-rewrites-on-iis7-windows-hosts -- 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

CakePHP 2.1 hot and fresh

2012-01-22 Thread José Lorenzo
The CakePHP core team is proud to announce the immediate availability of CakePHP 2.1.0 beta [1]. As noted in previous release, this version is fully backwards compatible with 2.0.5, making it a breeze to update your apps to start taking advantage of the many improvements that made into this re

Re: $persistModel is removed in Cake 2.0?

2012-01-30 Thread José Lorenzo
$persistModels does not exist anymore, the table structure is cached either in files or in APC cache if available (the faster APC cache is used if detected) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.

Re: Content Type in cakephp 2.0

2012-01-30 Thread José Lorenzo
echo in controller? hmm you might want to try this: $this->response->type('json'); $this->response->body(json_encode($var)); return $this->response; -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.o

CakePHP 2.0.6 released

2012-02-05 Thread José Lorenzo
The CakePHP core team is proud to announce the immediate availability of CakePHP 2.0.6 [1]. This will hopefully be the last minor version released for the 2.0 branch if no important changes are needed to be done before we get version 2.1 stable. After this one all bugfixes and security patches

Re: Helper aliasing acting weird in 2.1 Beta

2012-02-10 Thread José Lorenzo
Your aliasing would produce the "$this->Table" object in your views not "$this->Pdf->Table" -- 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: Helper aliasing acting weird in 2.1 Beta

2012-02-10 Thread José Lorenzo
Disregard my last comment, maybe you have another Table helper that is conflicting. If you think this is a bug, please open a ticket in the issue tracker. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.ca

  1   2   3   4   5   6   >