That's odd, because I've been doing that without any problems on cake
1.*, which version do you use? And how exactly do you call html-
>link()?
On Jul 23, 1:08 am, Laburno <[EMAIL PROTECTED]> wrote:
> Yes, but the problem is that if i call $data['Post']['title], if the
> title contains spaces (i.
So, there are usual site and admin area for add some news, materials
and so on.
It's good idea to make this admin area on subdomain (for example,
admin.somesite.org)?
As I think it's only one way for it.
--~--~-~--~~~---~--~~
You received this message because you
Also, remember that the usage of Model/field is deprecated in Cake 1.2
Use Model.field instead.
--~--~-~--~~~---~--~~
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@google
Oh, very nice. Thanks mucho Geoff
On Jul 22, 9:14 pm, Geoff Ford <[EMAIL PROTECTED]> wrote:
> In 1.2 you should be using
> Form::selecthttp://api.cakephp.org/1.2/class_form_helper.html#5171e675468c9665db0...
>
> The third param is which items are selected.
>
> Geoff
> --http://lemoncake.wordpres
For general items like title, datetime etc there is no need to
manually sanitize as it is all handled internally. Sanitize is only
required when you want to really restrict what input the user is
entering e.g. on your textile field you probably want to run
Sanitize::stripAll() to remove anything
In 1.2 you should be using Form::select
http://api.cakephp.org/1.2/class_form_helper.html#5171e675468c9665db0653c165b6c89c
The third param is which items are selected.
Geoff
--
http://lemoncake.wordpress.com
On Jul 23, 1:59 pm, beetlecube <[EMAIL PROTECTED]> wrote:
> I tried searching the board
I tried searching the board and reading the 1.2 API, but couldn't get
this working completely.
The option drop down does appear, and the values do appear. Very
simple one:
echo $html->selectTag('Post/genre_id', array("0" => "Biography","1" =>
"Drama","2" => "Comedy","3" => "Action","4" => "Sci
Well, it only matters about the table names like that if you are going
to use the inbuilt Cake HABTM association. Which you won't be,
because you also have additional fields in these join tables, which is
not support by the Cake HABTM.
For more feedback on the overall structure you should write
I think that for sessions it might be easier to use the forums table
and session name in cakephp which are both configurable in core.php
Geoff
--
http://lemoncake.wordpress.com
On Jul 23, 10:14 am, cakeFreak <[EMAIL PROTECTED]> wrote:
> Cheers Geoff!
>
> I agree with you that 1 single users tabl
sorry my mistake only one table showed in that image, please check the
link again i uploaded the correct version www.jpgalea.com/design.jpg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post t
Thanks citrus. The handle solution worked perfectly. I saw this
before, but never really put two and two together.
On Jul 22, 5:20 pm, citrus <[EMAIL PROTECTED]> wrote:
> Is this what you want to achieve?
>
> handle V1.0(none) Makes the created Draggables use
> handles,
I have a small question with Sanitize library, as I'm not really good
at solving security problems that may arise in my application.
As I've already know, Sanitize comes with lots of method: paranoid,
escape, html, etc.
But I wonder when to use which method, and I'm really confused with
it.
For
Cheers Geoff!
I agree with you that 1 single users table would be better!
What about sessions?
Do you suggest to check if an SMf session exists and then duplicate it
in cake_session table?
The same fr cookies?
Yep, SMF 2.0 seems promising, and above all MVC!
But not ooficial release time!
Da
Sections belongTo Sections - parent child relationship with parent_id
field
Sections HABTM Titles with Language (look at the ARO HBTM ACO with
Permission on how this works)
Then findAllThreaded('Language.code' => 'en') should work.(But I have
not tested it).
A similar approach can be used for an
Just a small question, how can I use a Yes/No radio instead of the
checkbox? I managed to use $this->radio('something', array(1 => 'Yes',
0 => 'No')) but I'm unable to get it automatically populated.
If I change the order of options, that means $this->radio('something',
array(0 => 'No', 1 => 'Yes
no problem!
--~--~-~--~~~---~--~~
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 PROTECTED]
For more o
You have one table (that looks like it was already made...or you just
chose terrible column names) and a vague description of an
application.
This is a cakephp help group...
http://slash7.com/articles/2006/12/22/vampires
--~--~-~--~~~---~--~~
You received this me
just as a point of reference drag and drop and sortables really have
problems in IE when they manipulate table elements like tr and td in
my experience.
Sam D
On 7/22/07, citrus <[EMAIL PROTECTED]> wrote:
>
> Is this what you want to achieve?
>
> handle V1.0(none) Makes the
Is this what you want to achieve?
handle V1.0(none) Makes the created Draggables use
handles, see
the handle option on Draggables.
Go to http://wiki.script.aculo.us/scriptaculous/show/Sortable.create
There're lots of options listed there.
On Jul 23, 2:09 am, cake_n00b <[
Thanks Geoff, I will look into that. But I would like to know how to
do this though - say, if in place of langauges, I wanted to add
versions to the website, i imagine it would be a similar principle.
any ideas?
On Jul 23, 12:44 am, Geoff Ford <[EMAIL PROTECTED]> wrote:
> Some resources on inte
Yes, but the problem is that if i call $data['Post']['title], if the
title contains spaces (i.e. "Hello First Post") i'll have a broken
link like "http://www/posts/12/Hello First Post".
I can add another attribute to the Posts table, "url_title" for
example, and then, when i add a Post, fill it wi
Some resources on internationalisation are listed on this page
http://groups.google.com/group/cake-php/web/frequent-discussions
Have a look at the section on How to add i18n support? and Translate
behaviour.
Geoff
--
http://lemoncake.wordpress.com
On Jul 23, 8:22 am, michaelmcandrew <[EMAIL PR
Hi,
I am having some troubles getting cake to interact with my database
how I want it to.
I have a site organised into sections. Sections are threaded, with
some being parents of others. The site is available in an arbitrary
number of languages. So there is a languages table detailing the
lan
I am trying to create a form where I can reorder a group of tables
using Ajax, yet still be able to highlight and copy data from the
cells within the table. The code below is an example of what I am
doing. This code allows me to drag and drop the tables to change the
order just fine. The proble
hi i am trying to build a web application that will enable lecturers
at a university department to collaborate together and produce review
reports about the modules being delivered during the year. Therefore I
will have an administrator that will control the whole process and
then several user acc
> CakePHP doesn't really support enumthis is because some of the DBs
> that cakephp was made to work with do not support it.
>
> Instead use: tinyint(1)
>
> Then the cake checkboxes will work auto-magically!
Ah, so the problem is that MySQL doesn't support boolean data types
yet, and CakePHP
If i am not wrong you can do this by putting one line to router.php
something like;
Router::connect('/', array('controller' => 'pages', 'action' =>
'admins', 'adminshome'));
Your base entry view becomes adminshome and related controller always
redirect to there.
Take care,
Gokhan aka K
Hello Jonathan,
Thank you for response. I've worked before struts in Java world.
Struts is not a workflow engine even
Spring too. Spring helps for IOC and loosely coupling the parts of the
code. Struts could be used
as an action traffic police and could be extended for very usefull
usage. But nor
Hi Road runner!
This is parts of my database.php:
var $default = array('driver' => 'mysql',
'connect' =>
'mysql_connect',
'host' =>
'localhost',
I am looking for experienced CakePHP developer who will be able to
participate with already existing gallery build in Cake. What I am
looking for is modifying existing script and implementing it into new
project. My budget is aimed at people based in Poland and East Europe
as I am outsourcing it.
Thought I would post this to help anyone who might encounter a
similiar problem in the future.
I have a textarea where the user can type multiple paragraphs.
$Sanitize->paranoid() was stripping out the paragraph breaks. When the
textarea was redisplayed, the contents showed up as a single long
p
Hi All,
I have a form->create code like below :
echo $form->create('Product', array('url'=>'/products/delete/' .
$product['Product']['id']));
But it return errors as follows :
==
Notice (8): Undefined index: id
[CORE\cake\libs\view\he
On 7/22/07, Langdon Stevenson <[EMAIL PROTECTED]> wrote:
>
> Hi Feris
>
> To access an unrelated model you need to set:
>
>var $uses = array('ModelName');
>
> in your controller. You can get more information on this from the manual.
Hi Langdon,
Thanks ! It works now, I looked at wrong secti
On 7/22/07, Walker Hamilton <[EMAIL PROTECTED]> wrote:
>
> put:
>
> var $uses = array('User', 'Category');
>
> ...at the top of your users_controller class
It works now. Thanks Walker !
Regards,
Feris
--~--~-~--~~~---~--~~
You received this message because you a
I had troubles with setting the sortable tree.. the option was not
avaialble so i just choose to type the js manual :)
show('Menu.name', $data); ?>
//
--~--~-~--~~~---~--~~
You received this mes
First, please try to search before posting, this kind of thing has
been answered many times before.
Your session cannot be started because your script is outputting some
content to the browser before the session header can be set. This is
happening on line 7 of your modules_controller.php . Thi
Of course!! Thanks for the help. BTW, had to change "id" to something
else as it was conflicting with another "id".
Peter -
On Jul 20, 3:53 pm, francky06l <[EMAIL PROTECTED]> wrote:
> renderElement('representation_type_select', array('id' => $id))
>
> On Jul 20, 8:26 pm, peterhf <[EMAIL PROTECTE
just the alphabetical order right? should be fixed now
On Jul 22, 6:02 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> you made a mistake in the many to many tables:
>
> many-to-many join tables should be named:
> alphabetically_first_table_plural_alphabetically_second_table_plural
> ie: tag
Hi all,
Just to add my little bit on this. Workflow engines are a reasonably
new thing in terms of
web frameworks and it's not something that is done very well at the
moment. I can't see
anything in CakePHP which resembles a workflow engine., it just seems
to have a simple
page/controller/funct
just call $html->link('/posts/view/'.$data['Post']['id'].'/'.
$data['Post']['title']);
if your view action have only one parameter $id, if it has more. f.e.
function view($id, $some_param=null, $some_param2=null);
then call it that way:
$html->link('/posts/view/'.$data['Post']['id'].'///'.$data['
40 matches
Mail list logo