Who knows what search engines rank on these days. Personally I think
the title in the url is good for users, they know what is at the link
before they go there. Where possible I try to use titles, I dont
think the integer vs text search is all that import. You should have
an index on the slug f
On Jun 12, 8:07 am, bingo <[EMAIL PROTECTED]> wrote:
> hi AD,
>
> I thought of doing so, but somehow I am not feeling comfortable with
> finding articles by title. Its much easier and efficient (I believe)
> to find articles by id as they are integers as compared to title which
> will require te
hi AD,
I thought of doing so, but somehow I am not feeling comfortable with
finding articles by title. Its much easier and efficient (I believe)
to find articles by id as they are integers as compared to title which
will require text search. Is there a way to use some redirect kind of
facility.
I didn't realise you could do findByField1OrField2(). Is this a 1.2
feature or has it alwys been in cake.
On Jun 12, 3:21 pm, AD7six <[EMAIL PROTECTED]> wrote:
> On Jun 12, 5:54 am, bingo <[EMAIL PROTECTED]> wrote:
>
> > hi,
>
> > I have website that currently uses article id in the url. So my u
On Jun 12, 5:54 am, bingo <[EMAIL PROTECTED]> wrote:
> hi,
>
> I have website that currently uses article id in the url. So my url
> looks something likehttp://findnwrite.com/memento/articles/details/2303. Here
> 2303 is
> article id.
>
> Instead of article id, I would like to use article title
Trying both 1.1.15.5144 and 1.2.0.5146alpha, and svn trunk, I cannot
get a simple, two-table app with only scaffolding to work properly. No
one on IRC has been able to help either.
I am using postgresql, with two tables: tournaments -> draws
My models are:
class Draw extends AppModel
{
I've followed this article:
http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-per-field-in-cakephp-1-2
but I'm getting this error:
Warning: preg_match() expects parameter 1 to be string, array given in
C:\Program Files\Apache Group\Apache2\htdocs\3Bids\cake\libs\model
\model_p
Testing
On Jun 8, 4:29 pm, Joshua Benner <[EMAIL PROTECTED]> wrote:
> Well, the most direct answer:
>
> Items belongsTo Types
> Types hasAndBelongsToMany Questions
> Questions hasAndBelongsToMany Answers
> (you can add relations in the other direction, too)
>
> Then when you retrieve an item, you
hi,
I have website that currently uses article id in the url. So my url
looks something like
http://findnwrite.com/memento/articles/details/2303 . Here 2303 is
article id.
Instead of article id, I would like to use article title in the url so
it is optimized for search engine. But I also don't w
If you are using 1.2 there is an excellent behaviour from Felix
http://www.thinkingphp.org/2007/05/13/bringing-the-cold-war-to-cakephp-12-the-containable-behavior/
It allows you to specify which models and fields that the find*
functions use. Very handy.
On Jun 12, 12:08 pm, Jorge Vargas <[EMAI
Hi
I'm new to cake but not to app development. I'm confused with the
following: I got a table structure and assoc. Everything loaded fine
with the scaffold so relationships are ok. PS: sorry if I break naming
conventions here they are not in the code.
I got a TakeExamController which has a metho
On Jun 11, 2007, at 7:24 PM, cakePHP wrote:
>
> Hi,
>
> Is there a good article that discusses the lifecycle of a request to
> response in cakephp?
Here's an excerpt from the (draft) CakePHP 1.2 Manual:
http://cakeforge.org/docman/view.php/53/462/1point2.pdf
-- John
--~--~-~--~~-
Hi,
Is there a good article that discusses the lifecycle of a request to
response in cakephp?
thanks.
--~--~-~--~~~---~--~~
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@
I can also write a function to validate the array if it belongs to
certain type. But then to populate the message correctly in the view,
it needs stuff to be written and its not elegant solution. So I am
looking for a better solution.
On Jun 11, 8:33 pm, Ketan Patel <[EMAIL PROTECTED]> wrote:
> I
In CakePHP 1.2, is it possible to validate an array of elements to be
of certain type. for eg.: I want the user to enter name in several
input textboxes. I have named them as name_1, name_2 and so on.
For ease of use, I save all name_{n} in an array name. I want to
validate this array name to of
I use AD7six's pagination helper/component, and it works great! But
right now I'm changing the default routes, so the user's sitename
comes before every controller->action.
Like this:
$Route->connect("/:sitename/posts/edit/*", array("controller" =>
"posts", "action" => "edit"));
This works fine
Grant Cox wrote:
> Search this group and you'll see it's come up a few times. Apparently
> it's a bug in the php mysql connector, where having two different
> database connections with the same authentication doesn't work (it
> confuses which connection to use). If you use a different username/
For future people with this problem...
Well I found something that finally worked the way I want it. I'm not
sure if this is the proper way to order pagination, but its the only
one which works properly.
var $paginate => array('order'=>array('account_number' => 'desc'));
gwoo said on IRC that ar
My thoughts behind the templating issue is that I personally prefer to use
PHP-style templates (I like Cake's implementation), but I also would like to
provide support for other template styles, as many people often have a
Smarty-style theme created (so it would be simpler for the user's theme to
m
In response to http://groups.google.com/group/cake-php/msg/838c013d48104b7e
I kinda felt like we were hijacking the thread, so here's my response to
your message.
So far we've only developed small applications for internal use. I have
no problem sharing them, but I don't know if they'll hold m
This has me intrigued now, thinking about the possibilities :-)
On 6/11/07, Joshua Benner <[EMAIL PROTECTED]> wrote:
>
>
> We make use of Drake fairly extensively on our organization's intranet,
> and I use the Drupal API all the time, since technically Cake is
> executing as a module with full ac
Do you have any examples of projects you have completed using Drake? (if you
can share them)
Heck, if I could utilize Drupal/Joomla for it's template support alone, that
would be awesome, as it seems too much of a bother to shoehorn something
like Smarty into Cake
On 6/11/07, Joshua Benner <[EMAI
In my opinion, it really is an incredible match made in heaven. The CSS
styles are even almost compatible. We've only made minor changes to the
default Cake CSS, and it looks like it's just another part of Drupal.
I also made some small modifications to Drake to introduce
per-application Drupa
2mb limitation is usually due to php.ini settings, you'll have to edit your
php.ini file and restart the httpd daemon
On 6/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
> On May 30, 4:29 pm, msajpm <[EMAIL PROTECTED]> wrote:
> > > Hopefully someone finds it useful.
> > > --
> > > Sie
On May 30, 4:29 pm, msajpm <[EMAIL PROTECTED]> wrote:
> > Hopefully someone finds it useful.
> > --
> > Siegfried
>
> Thanks Siegfried.
> Just begining to use cakePHP and I was having a long time trying to
> modify it by myself to use with 1.2.
>
> I have two a questions.
>
> I`m able touploadfi
We make use of Drake fairly extensively on our organization's intranet,
and I use the Drupal API all the time, since technically Cake is
executing as a module with full access to the rest of Drupal. This is
nice because Drupal handles LDAP authentication, which our Cake apps
then have access t
ModelA hasMany ModelB
ModelB actsAs SomeBehavior
SomeBehavior defines afterFind()
ModelAController::someAction() has:
$this->ModelA->recursive = 1;
$this->ModelA->findAll();
Will SomeBehavior::afterFind() be triggered for ModelB, since ModelB
will be retrieved via association to ModelA?
So fa
You might be right!
I was able to create a little bootstrap in Mambo to Cake where I can
call all Cake global functions and constant so I thought I should be
able to access to some of other classes.
This is just a proof of concept and an brain twister on my part to see
if it is possible.
Thanks
My understanding is the same as Joshua. It's a bridge that allows Joomla
access to the Cake applications/api, and Cake access to the Joomla
applications/api.
To completely replace the Joomla api, that would seem to be pretty complex,
as you would have to update existing Joomla components/modules to
Yes, they are bridges, but they still have full access to the Joomla and
Drake APIs (AFAIK).
chanh.ong wrote:
> Thanks for the tips but I am not sure that is how I want. I just want
> to use cake as a framework not a bridge to run cake app in Mambo. I
> think that is how Jake and Drake is doin
the 1st method is the correct one, because you .po file needn't need
to know all $name possibilities
then you can translate "Edit %s" to "Whatever %s" you want, and %s can
be tomatoes or potatoes or carrots or ...
On 11 juin, 18:20, Gilles Dubois <[EMAIL PROTECTED]> wrote:
> In CakePHP, in partic
You can the value in your controller before rendering the view :
$this->data['Category']['parent_id'], using the input('Category/
parent_id) ..will then get the value you have set into the controller
On Jun 11, 6:50 pm, r557 <[EMAIL PROTECTED]> wrote:
> Really basic here solution here i'm having
Really basic here solution here i'm having an issue with.
CONTROLLER FUNCTION
function admin_add() {
if(empty($this->data)) {
$this->render();
} else {
$this->cleanUpFields();
if($this
In CakePHP, in particular in the scaffolding, there are many lines of
code with, for example, sprintf(__("Edit %s", true), $name)) who, in
my opinion, do not function, while __(sprintf ("Edit %s", $name),
true) gives the awaited result. What do you think about it?
--~--~-~--~~---
On 6/11/07, bbuchs <[EMAIL PROTECTED]> wrote:
> Thanks for being constructive, Chris.
What, you don't see my point? He has the results set in an array, all
he has to do is iterate through it. Yes, Felix's Set article is a
good one too, but my point still stands: this is not a CakePHP issue,
th
Try using the Set:Extract method. Felix did a good short tutorial on
it:
http://www.thinkingphp.org/2007/02/24/cake-12s-set-class-eats-arrays-for-breakfast/
Thanks for being constructive, Chris.
On Jun 11, 10:22 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 6/11/07, Alexandre Gonçalve
Thanks for the tips but I am not sure that is how I want. I just want
to use cake as a framework not a bridge to run cake app in Mambo. I
think that is how Jake and Drake is doing. A bridge to run cake app
in Joomla and Drupal.
I just want to be able to use cake api and classes at this point.
Get Started With AJAX in CakePHP:
http://ahsanity.wordpress.com/2007/02/23/get-started-with-ajax-in-cakephp/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cak
Hi everyone!
I'm struggling to get a Javascript helper working in my very first
cakePHP app, and since I've tried all the ideas I had myself, I turn
to you all for help.
What I want: to include a number of custom JavaScript files from every
view of one of my classes.
What I've done so far:
1) A
On 6/11/07, Alexandre Gonçalves Jacarandá <[EMAIL PROTECTED]> wrote:
> But I don't know how to get all fspaths arrays.
> If you can't help me, please point me to some docs.
>
> Thank you, Alexandre.
Lord thundering jesus, don't you know how to iterate through an
array?!? This is basic PHP stuf
http://cakebaker.42dh.com/2007/01/29/joomla-and-cakephp/
http://dev.sypad.com/projects/jake/ << official home of Jake?
On 6/11/07, Joshua Benner <[EMAIL PROTECTED]> wrote:
>
>
> I know there is a Joomla extensions that integrates Cake (called Jake I
> believe) -- it may work for mambo, or there m
But I don't know how to get all fspaths arrays.
If you can't help me, please point me to some docs.
Thank you, Alexandre.
2007/6/10, Pablo Viojo <[EMAIL PROTECTED]>:
>
> And that's what you're getting, no more data than you need.
>
>
> --
> Pablo Viojo
> [EMAIL PROTECTED]
> http://pviojo.net
>
>
thx for the feedback every1, i'll upgrade to 1.2 :-)
luckily i've been using SVN for my own code, so i can rollback if it's too
drastic :-D
On 6/11/07, Dr. Tarique Sani <[EMAIL PROTECTED]> wrote:
>
>
> On 6/11/07, intel352 <[EMAIL PROTECTED]> wrote:
> >
> > When would you recommend upgrading to 1.
I know there is a Joomla extensions that integrates Cake (called Jake I
believe) -- it may work for mambo, or there may be a similar extension
for Mambo -- or perhaps you could port it.
chanh.ong wrote:
> I was able to bootstrap cake into Mambo and able to call global
> functions and cake const
I was able to bootstrap cake into Mambo and able to call global
functions and cake constant but not able to figure out how to call
helpers, etc, any suggestion?
I am not using the normal cake controller, etc. I create an include
file that bootstrap cake into Mambo as a library and hoping to use
On 6/11/07, intel352 <[EMAIL PROTECTED]> wrote:
>
> When would you recommend upgrading to 1.2? I've always been about
> "bleeding edge" software, but since 1.2 is still in alpha status, it
> wouldn't suggest it's very stable quite yet, especially with the
> possibility of major code changes before
If you're porting applications from 1.1 to 1.2, be prepared to rewrite a
little code, especially in views. It's not too bad, but it's worth
mentioning that a lot of HtmlHelper stuff has moved to FormHelper (where
appropriate).
intel352 wrote:
> When would you recommend upgrading to 1.2? I've a
On 6/11/07, intel352 <[EMAIL PROTECTED]> wrote:
>
> When would you recommend upgrading to 1.2? I've always been about
> "bleeding edge" software, but since 1.2 is still in alpha status, it
> wouldn't suggest it's very stable quite yet, especially with the
> possibility of major code changes before
When would you recommend upgrading to 1.2? I've always been about
"bleeding edge" software, but since 1.2 is still in alpha status, it
wouldn't suggest it's very stable quite yet, especially with the
possibility of major code changes before it hits final.
Any thoughts?
--~--~-~--~~-
Link to that article:
http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-per-field-in-cakephp-1-2
On 6/11/07, Dr. Tarique Sani <[EMAIL PROTECTED]> wrote:
>
>
> On 6/11/07, Ketan Patel <[EMAIL PROTECTED]> wrote:
> >
> > Check out simple example at
> > http://bin.cakephp.org/view/6
On 6/11/07, Ketan Patel <[EMAIL PROTECTED]> wrote:
>
> Check out simple example at
> http://bin.cakephp.org/view/610862726
>
> You are mixing and matching two different things. Use this simple
> example as starting point .
>
Perhaps the technically correct way is *not to have the error messages
i
On 6/11/07, jenson <[EMAIL PROTECTED]> wrote:
>
> Hi friends,
>I need autocomplete using ajax ,when i type a the user belongs to the
> particular alphabets need to display below .so i need full coding sample how
> to use with explanation,pl my friends.
> thanks,
> jenson
I hear that googl
Hi friends,
I need autocomplete using ajax ,when i type a the user belongs to the
particular alphabets need to display below .so i need full coding sample how
to use with explanation,pl my friends.
thanks,
jenson
--~--~-~--~~~---~--~~
You received this mess
It's pretty simple right now. Upon save, the html will be HTMLTidy'd, and a
stripped copy will be saved to the database alongside html copy.
There's not much else there. In the view, I have TinyMCE enabled currently,
but I've tested with TinyMCE removed, still no HTML showing in the returned
conten
if you could post some code then perhaps could help better.
intel352 wrote:
> I'm building my first Cake application. I've started a controller that
> is used for creating/editing Content articles, and it saves to the
> database with a full-html 'teaser', full-html article and a stripped-
> html
Check out simple example at
http://bin.cakephp.org/view/610862726
You are mixing and matching two different things. Use this simple
example as starting point .
Ketan :-)
ne0d1n wrote:
> In new $validate array there is 'message' key obviously for error
> messages.
> (see example in http://bin.ca
I'm building my first Cake application. I've started a controller that
is used for creating/editing Content articles, and it saves to the
database with a full-html 'teaser', full-html article and a stripped-
html article (for cleaner searching), which works perfect.
When I am attempting to edit,
For submit:
Include the FormHelper in your controller, then use:
$form->submit() (see 1.2 api at http://api.cakephp.org/1.2 )
personally, I use (from the controller): $this->flash('message', $url)
Again, refer to api for more details.
Martin wrote:
> Hello bakers,
> I 've successfully create
Hi,
I'll help you out regarding this issue.
Please let me know ,how can i help you.
Thank you.
On Jun 11, 4:27 pm, "jenson" <[EMAIL PROTECTED]> wrote:
> Hi friends,
> In my project i nedd to include autocomplete using ajax kindly help
> me to go througth.
--~--~-~--~~---
Hello bakers,
I 've successfully created my first blog with cake using the example
at:
http://manual.cakephp.org/appendix/blog_tutorial
Two things I wanted to comment for this example:
1- /app/views/posts/add.thtml
submit('Save') ?>
IS DEPRECATED.
What is the other method we need to us
Hi friends,
In my project i nedd to include autocomplete using ajax kindly help
me to go througth.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cak
On Jun 2, 5:41 am, jitka <[EMAIL PROTECTED]> wrote:
> Well, it seems like deadline of your project doesn't allow wait for
> cake's solution for reading records with fallback to default locale ;)
Hi jitka,
Is there an easy way to add/update elements on multiple languages at
the same time through a
On 6/11/07, AD7six <[EMAIL PROTECTED]> wrote:
>
> Your (required) length of answer/ length of question score is dropping
> chaps :D
>
In which case your score is the lowest till now - but I will lower mine ;)
@ Abhinav, just do $this->model->save($this->data) and
$this->othermodel->save($this->d
On Jun 11, 12:57 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 6/11/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote:
>
>
>
> > Or no... depends... :)
>
> Well I can argue about the depends part ;)
Your (required) length of answer/ length of question score is dropping
chaps :D
AD
--~-
On 6/11/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote:
>
> Or no... depends... :)
>
Well I can argue about the depends part ;)
T
--
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
==
Or no... depends... :)
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-Mensaje orig
On 6/11/07, AbhinavZone <[EMAIL PROTECTED]> wrote:
>
> hi, is there any way to post data from 1 form to multiple tables?
>
yes
T
--
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
It is matter of personal taste, off course. With FormWizardComponent
all multi-page-form-requests are calling only one public method of
controller.
Also 'ways' in FormWizard are quite usable - for example:
// ways used in InstallerController
array(
'install' => array('
_installStart',
hi, is there any way to post data from 1 form to multiple tables?
--~--~-~--~~~---~--~~
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
thx very much for your kindly response.! :)...
to be honest..., I did copy the app and translate them to english...
:( I know is a bad practice to Repeat myself, perhaps it's much slow
to do in this way..
but, considering the time limitation , the simply requirement and the
scale of my pro
On Jun 10, 4:42 am, gary <[EMAIL PROTECTED]> wrote:
> Hi,
> I was wondering if there is a way to make use of a panel type of idea
> using cake php? is there anything predefined that accomodates for such
> a technique? otherwise is there something else that could assist me in
> this?
>
> btw my m
I just found out that doc comments on mentioned method are on 15 lines
(and implementation of this method is on 7 lines) of source code.
Many thanks to cake developers for writing _important_ things to doc
comments, even for 7-line methods.
--~--~-~--~~~---~--~~
Calling Router::parseExtensions() without arguments allows
_all_extensions.
Try something like Router::parseExtensions('html', 'rss', 'xml');
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To pos
wewo wrote:
> Dear all,
>
> What would be your implementation recommendation (controller side) for
> setting up a tabbed multipage form (step1, step2, step {n}), where in
> every step different models and controllers are influenced and the
> different steps maybe influce other steps (available or
Well, I'm not sure what you mean by "recursive"... But yes, you can
have one form that saves to two models. On the form side just add all
the fields that you would normally have on two separate forms. The
one controller action that receives the form just needs to have two
save calls, one for ea
Well, the short answer is just to use your beforeValidate callback,
and check whatever fields are appropriate.
The long answer... the different validation is based upon the logged
in user, which is authentication and not really related to the model
itself. So you don't want to be reading sessio
Search this group and you'll see it's come up a few times. Apparently
it's a bug in the php mysql connector, where having two different
database connections with the same authentication doesn't work (it
confuses which connection to use). If you use a different username/
password for each databas
hi again,
how can i set up different validation rules (for a model) for
different user types ?
for example the regular web user *must* enter his phone number when
registering,
while the backend admin may create records that just contain the last
name.
thanks a lot.
jyrgen
--~--~-~--~
The scaffolding should automatically create this for you if you have
the associations set up correctly. What form element is it currently
showing for the "province_id" field in your /users/edit action?
Otherwise you can do it manually by having
$province_options = $this->User->Province->generateLi
Hi,
Can I get the query in production mode without using logs when a SQL
error occurs ?
I made an onError() in AppModel which is sending an email with the
last SQL error, but without the query some errors are difficult to
trace. It seems that there is a way by using the query log but I don't
wa
On Jun 10, 11:01 am, grayblur <[EMAIL PROTECTED]> wrote:
> It makes me really upset...
>
> I prefer Symfony..:(`
Where did the idea to create an "english.php" and 2 applications just
to have 2 languages come from? Is that how things would work in
symfony? If that's considered optimal then
On Jun 10, 6:12 pm, Joel <[EMAIL PROTECTED]> wrote:
> Hi all!
>
> I try to do a search over a pagination component I found here
> athttp://www.noswad.me.uk/Pagination/PRG(Andy Dawson's site).
>
> Source:http://cakeforge.org/frs/?group_id=152
>
> I try to use '1 step' search, a very simple form w
Hi,
I would but the Bakery is not letting me login - I think this has
already been flagged elsewhere in the group. Ianh
On Jun 8, 8:34 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> Can you add that as a comment on the article and when I have a few minutes
> and make some more updates to the a
83 matches
Mail list logo