Weird problem with languages

2010-11-04 Thread Fran Iglesias
solution: change i18n table locale codes to the two digit format, but i think there should be a better way). --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions

Re: Send 'first' parameter to pagination function

2010-10-20 Thread Fran Iglesias
$this-paginate['Book'][0] = 'first'; should do the trick... El 20/10/2010, a las 18:43, Mariano C. escribió: I need a sort of find('first') for pagination? How can i do? --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com Check out the new CakePHP Questions site http

Re: 15 minute Blog Tutorial? Really?

2010-10-10 Thread Fran Iglesias
Hi Jeff El 10/10/2010, a las 22:58, Jeff escribió: Debug already IS '2' http://click-2-run.com/cakephp/posts/index.php Try http://click-2-run.com/cakephp/posts/index without the extension The url is /controller/action and action name in the controller doesn't include extensions. --- Fran

Re: Question about I18n and relation

2010-08-31 Thread Fran Iglesias
Hi, El 30/08/2010, a las 16:56, MoAX escribió: Informations about my category are retrieved and its title from the i18n table too. But items title and description (in the i18n table) are not retrieved while their informations are. Is a limitation in the Translate Behavior. Related models are

Re: SimpleTest: You need a new test.php. Try this one: cake\console\libs\templates\skel\webroot\test.php

2010-08-31 Thread Fran Iglesias
Hi El 31/08/2010, a las 14:41, Joshua Muheim escribió: Still the same error. Even when there is *no* test.php file in the webroot I get this error. Very frustrating. Any other help? I remember having the very same error, and the solution was to update cake 1.2 to final. --- Fran Iglesias

Re: Problem with tinyint(1)

2010-08-17 Thread Fran Iglesias
Hi, El 17/08/2010, a las 20:02, Arnold Roa escribió: hi, i have a field icon, tinyint(1). is this okey? or is a bug? tinyint(1) is boolean for Cake. You could define the field as tinyint(2) --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com Check out the new CakePHP

Re: How write joins in cakephp please help me out

2010-05-18 Thread Fran Iglesias
HI El 18/05/2010, a las 12:20, Narendra Padala escribió: I am new to cakephp, If any one can help me how to write left joins in cake php. please conver below query in cakephp try http://book.cakephp.org/view/872/Joining-tables Check out the new CakePHP Questions site http://cakeqs.org and

Re: baking 1.3.0 problems?

2010-05-16 Thread Fran Iglesias
/724-template-task-problems-when-cake-core-is-under-a-path-that-includes-a-libs-folder --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received

Re: Error after adding database.php file to project (happening on Windows and Ubuntu)

2010-01-22 Thread Fran Iglesias
Hi El 21/01/2010, a las 23:44, Lucas Loss escribió: 4. Then I've renamed the file database.php.default to database.php; 5. Back to the browser I reloaded the page and noticed a new sentence: I miss a step between these. Have you configured your database connection in database.php? And, by

Re: Pagination with 2nd order recursive conditions filter

2010-01-10 Thread Fran Iglesias
Hi, El 11/01/2010, a las 8:35, Jeremy Burns escribió: I have had the very same annoying problem and couldn't solve it. I wanted to do (effectively - using the good old blog as an example): If you are writing your custom find types to perform the search as in

Re: global functions

2009-12-10 Thread Fran Iglesias
methods, load it during bootstrap and use as singleton, something similar to the inflector class. --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You

Re: managing the missing argument errors

2009-11-30 Thread Fran Iglesias
Hi, El 30/11/2009, a las 9:16, Ernesto escribió: but that's unconfortable... My approach: in controller... function edit($id = null) { if (!$id) { $this-Session-setFlash('INvalid URL'); $this-redirect (array('action' = 'index'); } //

Re: managing the missing argument errors

2009-11-30 Thread Fran Iglesias
Hi again, El 30/11/2009, a las 9:35, Ernesto escribió: too many ifs in my controllers. It think this is unavoidable. Setting the argument with a default value of null avoid the PHP error of missing argument, function edit($id = null) {...} but you need to give some response to the

Re: Delete confirm

2009-11-25 Thread Fran Iglesias
Hi, If you don't have a delete view (or don't want to have) I guess you need to redirect to the index action after deleting. El 25/11/2009, a las 13:22, jburns escribió: The delete view, I presume. The error message is as I typed it. Check out the new CakePHP Questions site

Re: MISSING TABLE

2009-08-10 Thread Fran Iglesias
Guys, I've this problem. I've a table called cc_works_collections that I've created on mysql db. --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Unit testing and file uploads

2009-08-10 Thread Fran Iglesias
, to be able to simulate the results of the upload to test the rest of the behavior. Could this be a correct strategy? Thanks --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com --~--~-~--~~~---~--~~ You received this message because you

Re: knowledge base component

2009-08-07 Thread Fran Iglesias
The Cakebook? http://thechaw.com/cakebook El 07/08/2009, a las 11:12, leop escribió: Does anyone know of a knowledge base / wiki application built with Cake? --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com --~--~-~--~~~---~--~~ You

Re: Finding missing numbers in an array

2009-08-04 Thread Fran Iglesias
. Let me give you this example: $missing_array1 = array(1,2,3,4,6,7,8); The missing number for the above array is 5. $missing_array2 = array(1,2,3,4,5,7,8,9); The missing number is 6 Please help me on this. Thanks Gangzheng --- Fran Iglesias cakephpi...@gmail.com http

Re: Containable - Deep Associations - Sort resulting array

2009-08-04 Thread Fran Iglesias
-in-model-find --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com --~--~-~--~~~---~--~~ 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

Re: How to access methods of different controller?

2009-07-17 Thread Fran Iglesias
requestAction). --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com --~--~-~--~~~---~--~~ 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

Fixtures import

2009-07-15 Thread Fran Iglesias
on... Anyone can drop me a clue? Tests works well if I declare a $fields array. --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group

Containable does not return data

2009-07-13 Thread Fran Iglesias
Containable (via AppModel) --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php

Re: App::import and Classregistry (Solved)

2009-07-07 Thread Fran Iglesias
. El 05/07/2009, a las 23:24, Fran Iglesias escribió: Reading the Core test case for Classregistry doesn't clarify the question for me. I need to study how to prove this issue in a more general fashion. --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com

App::import and Classregistry

2009-07-05 Thread Fran Iglesias
App:import('Model') at the beginning solves the issue App::import('Accounts.Group'); I din't find this well documented, so I comment here for discussion. --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com --~--~-~--~~~---~--~~ You

Re: App::import and Classregistry

2009-07-05 Thread Fran Iglesias
plugins. http://bin.cakephp.org/view/410144964 --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email

Re: App::import and Classregistry

2009-07-05 Thread Fran Iglesias
in a more general fashion. Thanks. --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake

Re: slug of choice

2009-06-22 Thread Fran Iglesias
El 22/06/2009, a las 9:03, aman batra escribió: What should be the approach over this.. I m using the sluggable behavior to generate the slug for the post. Perhaps... - make the slug field editable in the ass/edit actions - If the slug field is left blank by the user, create the slug

Fixtures importing table definitions

2009-06-19 Thread Fran Iglesias
don't know if this is important) I'm using last stable. Any idea? --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post

Problem with a behavior and a Controller test

2009-06-16 Thread Fran Iglesias
a method in the behavior but the behavior is not loaded. In the model tests, the method works well. So, How could I manually binf the behavior to the model? Thanks. --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com

Re: Using several views for same controller function

2009-04-28 Thread Fran Iglesias
Hi, MVC complaints aside, if you want to use a no convention view, simply perform a $this-render('the_view'); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email

Re: requestAction and parameters

2009-03-26 Thread Fran Iglesias
Hi, El 26/03/2009, a las 12:56, Dardo Sordi Bogado escribió: $this-requestAction(array('action' = 'recent', 'pass' = array(5))); I haven't tested it myself. I'll try that, thank you. Is this just out of curiosity or do you have a reason to use the array syntax ? The main reason is to

requestAction and parameters

2009-03-25 Thread Fran Iglesias
('action' = 'recent', 5)); then you don't get 5 in the $count variable in the action. You can find in $this-params[0]. Is this the expected behavior? TIA --- Fran Iglesias cakephpi...@gmail.com http://cakephpilia.blogspot.com --~--~-~--~~~---~--~~ You received

Re: Latest Cake Release breaks HABTM pagination

2009-01-29 Thread Fran Iglesias
.42dh.com/2008/09/23/an-alternative-way-to-define-custom-find-types/ El 29/01/2009, a las 1:31, aron escribió: the sql statement no longer does a join, when we replace the cake folder with the rc4 cake folder it works fine again. Any insight from any cake gurus? -- Fran Iglesias fran

Testing a controller method

2009-01-18 Thread Fran Iglesias
this test? Thank you. -- Fran Iglesias fran...@buabua.com --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send

Re: Cake 1.2 and JW FLV Media Player

2008-11-07 Thread Fran Iglesias
Have you tried change AppHelper to Helper. The snippet works for 1.2RC3 El 07/11/2008, a las 12:41, nightcrawler13 escribió: thx for your reply but it still had same error or simply change the snippet code fromm extends AppHelper to extends Helper... -- Fran Iglesias [EMAIL PROTECTED

Re: Cake 1.2 and JW FLV Media Player

2008-11-06 Thread Fran Iglesias
\ with this code ?php class AppHelper extends Helper { } ? or simply change the snippet code fromm extends AppHelper to extends Helper... I guess some builds of Cake 1.2 haven't cake/libs/view/helpers/ app_helper.php -- Fran Iglesias [EMAIL PROTECTED

ACL nodes naming doubt

2008-11-04 Thread Fran Iglesias
to find the right aro. So, how must I name my Aco aliases? or Is a better approach to this kind of setup? Thanks -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group

Solved Re: Auth passing user model to Acl

2008-10-30 Thread Fran Iglesias
. So, an admin_index node is valid, as child of a Posts node, for instance. Thanks. -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send

Auth passing user model to Acl

2008-10-29 Thread Fran Iglesias
= 'actions'; $this-Auth-actionPath = 'actions/'; -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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

Acl: way to get Acos related to a given Aro?

2008-10-24 Thread Fran Iglesias
a bit inefficient. I would like to hear some suggestions. -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php

Testing and cake custom installation

2008-10-16 Thread Fran Iglesias
this custom install, but I would like to know if a workaround is possible. -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email

Re: Linking to non-admin action from admin-action

2008-10-09 Thread Fran Iglesias
://www.ad7six.com/MiBlog/MakingTheMostOfTheRouter -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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

Re: Install cake on leopard, but not the docroot

2008-10-08 Thread Fran Iglesias
it in http://localhost -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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 unsubscribe from

Re: Custom views based on action parameters?

2008-10-06 Thread Fran Iglesias
Hi, El 04/10/2008, a las 17:41, Lamonte escribió: How do you do it. controller-render('view_name'); -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group

Re: Configure::write or define()

2008-09-26 Thread Fran Iglesias
a flexible way to read and write application-wide configuration data. http://book.cakephp.org/view/42/The-Configuration-Class Constants are OK for multiple purposes. -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

Re: Automatic Login after Signup using Auth Component

2008-09-24 Thread Fran Iglesias
El 24/09/2008, a las 7:28, mario escribió: Do anyone of you have an idea on how to automatically login after signing-up using Auth Component? This seems a task for $this-Auth-login() http://api.cakephp.org/1.2/class_auth_component.html#5c2562e36d1fb6f8b93a15fb23604abc -- Fran Iglesias

Re: Automatic Login after Signup using Auth Component

2008-09-24 Thread Fran Iglesias
El 24/09/2008, a las 9:02, mario escribió: This time, it failed to login the user. It seems like there is some problem in terms of hashing my password. Not sure, but you may try to login the User, with the non-hashed password. -- Fran Iglesias [EMAIL PROTECTED

Re: Automatic Login after Signup using Auth Component

2008-09-24 Thread Fran Iglesias
['User']['password2']; $this-Auth-login($this-data); // login user } -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email

Re: Variables in localization strings

2008-09-24 Thread Fran Iglesias
Hi, El 24/09/2008, a las 17:38, lemp escribió: French: __(objectif, true) . . $year; English: $year . . __(objectif, true); The __() function supports the sprintf format, so French: sprintf(__(objectif %s, true)); English: sprintf(__(%s objectif, true)); -- Fran Iglesias

Re: Behavoirs no load

2008-04-30 Thread Fran Iglesias
El 30/04/2008, a las 13:24, inver escribió: $this-Noticia-bindTranslate('titulo') $this-Noticia-bindTranslation('titulo'); http://api.cakephp.org/1.2/class_translate_behavior.html#9753a3633a708bcd9e8a2f479cd72936 -- Fran Iglesias [EMAIL PROTECTED

Re: Creating forms

2008-04-24 Thread Fran Iglesias
could output a different form element according to that info. hth -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php

Re: php4 auto-validation

2008-04-23 Thread Fran Iglesias
, the application fails with no messagges or with apparently unrelated warnings. Hope that helps. -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post

Re: Poor EmailComponent templating

2008-03-07 Thread Fran Iglesias
en este servicio. Para acceder, visita la página ?php echo Configure::read ('Sitio.url'); ? Gracias. -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

Re: Some doubts with Dynamic Content Localization

2008-03-06 Thread Fran Iglesias
to set a default language for the behavior. I mean: is there a CakePHP setting for this or you must set one of your own?. For this, I found that Config.language is the key in Configure. -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received

Unexpected error with cake console

2008-03-05 Thread Fran Iglesias
/cake/console and have the same problem. Would like to know if someone else has a similiar problem. -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

Re: Custom Component and Redirect problem

2008-02-07 Thread Fran Iglesias
the redirect line. Any clue? Redirect sends headers, and you has just printed a result. You have to rethink the code. -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake

Re: Ajax links working first time (Solved)

2008-02-06 Thread Fran Iglesias
Hi, El 05/02/2008, a las 19:11, Fran Iglesias escribió: This works well... the first time. When I create or edit an event the index updates but the links (ajax links are created with AjaxHelper:link()) doesn't work. In fact, when I look at the generated HTML there is no javascript code

Ajax links working first time

2008-02-05 Thread Fran Iglesias
in the components array, and protoype is loaded in the main view. There is no problems with conflicting DOM id or similar. The issue happens at ajax request. I would like some suggestion on how to debug this issus. Thanks. -- Fran Iglesias [EMAIL PROTECTED

Re: Installing CakePHP on MAMP

2008-01-25 Thread Fran Iglesias
/Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com

Question about Set class

2008-01-18 Thread Fran Iglesias
://www.thinkingphp.org/2007/02/24/cake-12s- set-class-eats-arrays-for-breakfast/ without success. TIA -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post

Re: Question about Set class

2008-01-18 Thread Fran Iglesias
is not critical at this step of development (or even for the final application, we don't expect a huge amount of visitors). But I found Set class very useful. -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed

CSS Vendors folder (Cake 1.2, latest alpha)

2007-10-09 Thread Fran Iglesias
in the API). So I change app/config/core.php to define BASE_DIR with this value. -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email

Advice on retrieving groups of authorized objects

2007-09-10 Thread Fran Iglesias
want to manage)... I would like to hear some advice in this question. -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php

Re: Advice on retrieving groups of authorized objects

2007-09-10 Thread Fran Iglesias
. -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Arguments in behavior methods (cake 1.2)

2007-07-24 Thread Fran Iglesias
without passing a reference to the model, isn't it? -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com

Re: My own global function

2007-06-20 Thread Fran Iglesias
El 19/06/2007, a las 23:31, chanh.ong escribió: Which of these options will my functions be availalbe in all places like model, controller, and view? In 1.2 you can use /app/config/bootstrap.php to load globally available functions. -- Fran Iglesias [EMAIL PROTECTED

Re: Persistent forms?

2007-06-13 Thread Fran Iglesias
you. -- Fran Iglesias [EMAIL PROTECTED] http://cakephilia.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Persistent forms?

2007-06-12 Thread Fran Iglesias
with ajax? (Check in the controller or view if is necessary to reset the form???) Thanks in Advance. -- Fran Iglesias [EMAIL PROTECTED] http://cakephpilia.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Additional layout placeholders?

2007-06-07 Thread Fran Iglesias
, and fill them with elements, and the $content_for_layout for the output of the actual controller/action. (I've read about other ways to achieve similar results to solve some performance issues) -- Fran Iglesias [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You