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
$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
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
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
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
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
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
/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
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
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
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
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');
}
//
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
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
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
, 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
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
.
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
-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
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
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 (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
.
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('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
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
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
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
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
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
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
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
('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
.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
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
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
\
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
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
. 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
= '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
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
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
://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
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
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
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
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
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
['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
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
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
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
, 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
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
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
/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
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
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
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
/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
://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
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
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
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
.
--
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
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
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
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
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
, 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
69 matches
Mail list logo