Nope - it's a great tool but in my opinion (and other experienced Cake
developers too, it seems) it has to be used with caution. Just because it CAN
do some things doesn't mean that you HAVE to use them. I can't see any sense in
doing this:
Html->tag('div', $this->html->tag('h1', 'Here is my
h
I had already conceded that there may be performance issues with this
approach, I just wanted more data on the severity of it. I'll do some
profiling myself, but if anyone has knowledge about this they can
share, I'd really appreciate it.
I'm puzzled by this attitude I'm reading (perhaps I'm misre
In this case better turn off persistentModel as you did and reopen
ticket. Looks like it is definitely CakePHP bug.
On Sep 17, 6:09 pm, Jeremy Burns | Class Outfit
wrote:
> Thanks Dr Loboto. Unfortunately that has no effect.
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.comhttp://ww
You are focussing your efforts in the wrong place. Your time spent pressing
keys on the keyboard is a fraction of the time that your code will be rendered
across the interweb. If you have a library that you are loading up which in
turn loads up a component and then runs some functions just to ou
Use the unset php command to remove them or - probably more efficient - create
a user_profiles table and a User hasOne UserProfile relationship.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 18 Sep 2010, at 22:09, Mariano C. wrote:
> I have a table users,
Yup - I know all this and if you read the post you'll see that I am using the
form helper and am not using javascript. My question was "how do you debug an
issue with the Security component?".
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 18 Sep 2010, at 2
Hi Cakers,
I am trying to integrate the PayPal Component by Mariano Iglesias and
I am having trouble understanding how to implement the form and then
the controller action to call the component.
I have set up a form for the checkout and then I am calling a checkout
function in my carts controller
@ Andrei Mita
Thanks again.
@ meekamoo
I currently do use the Security component. I didn't even realize that
it also says protection from form tampering. Thanks.
On Sep 18, 1:32 am, meekamoo wrote:
> Isn't this what the Security component is for?
>
> http://book.cakephp.org/view/1296/Security-
On Sep 18, 7:50 pm, cricket wrote:
> Better to extend HTMLHelper.
I like that idea. Could you help me understand how you might extend
HtmlHelper to make available these global functions (or perhaps even
better, put them in some kind of namespace)? I'm new to PHP, so it
wasn't clear to me how to w
On Sep 18, 6:41 pm, Miles J wrote:
> Theres no point in using the HTML
> helper to create a div when you can create it manually.
Sure there is. For one, it makes your code shorter by eliminating
boilerplate. The bar idiom is very common, and
so some clever HtmlHelper developer realized it'd be ha
On Sat, Sep 18, 2010 at 6:16 PM, Evan R. Murphy wrote:
> I figured out a way to do this through trial-and-error, but it's kinda
> kludgy.
>
> You create a libs/html.php file with wrapper functions for every
> HtmlHelper you want to alias:
Better to extend HTMLHelper. But, like others have said, t
Like Jeremy said, use pure HTML. Theres no point in using the HTML
helper to create a div when you can create it manually.
On Sep 18, 3:16 pm, "Evan R. Murphy" wrote:
> I figured out a way to do this through trial-and-error, but it's kinda
> kludgy.
>
> You create a libs/html.php file with wrappe
I figured out a way to do this through trial-and-error, but it's kinda
kludgy.
You create a libs/html.php file with wrapper functions for every
HtmlHelper you want to alias:
div($class, $text, $options); } }
if (!function_exists('tag')) {
function tag (...) {
... } }
... ?>
Then, in ever
I have a table users, associated to model User and so on...
When I logged in, row associated to my account info, will be
automatically saved as session.
There's a lot of field inside users/User that i don't need to save as
session, how can I exclude it?
Check out the new CakePHP Questions site htt
Hello,
The path should look the same in a directory and browser after the :
..filesystem/webroot/
http://www.in-culture.info/
where is the SalmonSashimi.jpg in the webroot ?
These are working:
http://www.in-culture.info/uploads/images/eventLG0.jpg
http://www.in-culture.info/img/pegasus_
When using the Security Component you must use the FormHelper to
create your forms. The Security Component looks for certain indicators
that are created and managed by the FormHelper (especially those
created in create() and end()). Dynamically altering the fields that
are submitted in a POST reque
Create a view or a stored procedure in your database and call it instead of
using find.
On Fri, Sep 17, 2010 at 5:40 PM, may_...@bk.ru wrote:
> Hi there.
>
> My model uses multiply tables, not single one. Those tables have
> unique CHAR strings as primary key, so they don't intersect.
>
> I need
ok i tried this and it works, but not perfectly
$saved = $this->User->save(array(
'User' => array(
'id' => 1,
),
'Product' => array(
'Product' =>
ok after two close nervous breakdowns i got it. for everyone else who
has probs with habtm saving: used this behaviour
http://bakery.cakephp.org/articles/view/add-delete-habtm-behavior
works pretty fine. :)
On 18 Sep., 16:39, Tomfox Wiranata wrote:
> hi everyone,
>
> I have two models: User
These tags are so simple, there's no need to use the helper. Drop the helper
altogether and do it with straightforward html. There's little benefit in using
the helper for these - in fact you are slowing your site down by using it. Then
you have complete control.
Jeremy Burns
Class Outfit
jere
0 down vote favorite
Hi,
I am using fckEditor as text editor. When i upload images thru it the
images were uploaded to app/webroot/fckeditor/images.
And when they're embedded it looks like
/fckfiles/SalmonSashimi.jpg
Until now it looks right.
But the image doesn't appear. So when I browse
I really like using CakePHP's HtmlHelper, except that it's so verbose.
I'd love to be able to write
div('header',
tag('ul',
tag('li', link('Home', '/')),
aa('class', 'nav')))
instead of
$html->div('header',
$html->tag('ul',
$html->tag('li', $html->link('Home', '/')),
aa('clas
Hi there.
My model uses multiply tables, not single one. Those tables have
unique CHAR strings as primary key, so they don't intersect.
I need my model to search through all of these tables. But cake's FIND
method doesn't allow to specify table to search in. And also doesn't
allow to use mysql's
hi everyone,
I have two models: User and Product with tables users and products.
there is a HABTM relation involved.
so I coded in the product model:
var $hasAndBelongsToMany = array(
'User' =>
array('className'=> 'User',
'joinTable'
yes...in your 3 param for link method...add to array: "escape" => false
--
Tilen Majerle
http://majerle.eu
2010/9/18 hoss7
> i want have links like this:
> home
>
> but when i use this code:
> link(''.'home'.' span>','/',array('class'=>'active')); ?>
>
> i have this:
> home a>
>
>
Try the escape option... http://book.cakephp.org/view/1442/link
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 18 Sep 2010, at 15:10, hoss7 wrote:
> i want have links like this:
> home
>
> but when i use this code:
> link(''.'home'.' span>','/',array('class
i want have links like this:
home
but when i use this code:
link(''.'home'.'','/',array('class'=>'active')); ?>
i have this:
home
i want use span in links,i am search in group but i cant find out how
i can do this,i only find
$html->tag('span') but i cant use it.
Check out the new
Hi all,
i'm trying to get a habtm query to work..
I've got the following models
User (habtm Group)
Group (habtm Group, hasmany Rule)
Rule (belongs to Rule)
Trying to get a list of rules for a given User - conditioning the query on
Rule with User.id = $this->auth->user('id')
but the user group
Ah thanks for your help, I managed to sort it out.
Got it working quite nicely with ajax menu on the sidenav.
/countries/view/204 is the main screen showing the provinces for the
country (only one country now, so countries arent really used)
/provinces/view/xxx views the regions belonging to the
Isn't this what the Security component is for?
http://book.cakephp.org/view/1296/Security-Component
On Sep 17, 8:05 am, Andrei Mita wrote:
> I believe that is true. You can test this by opening the page with FF, alter
> the form with firebug and submit it.
>
>
>
> On Thu, Sep 16, 2010 at 9:38 PM
In an earlier thread you mentioned you took over a CakePHP site from
another developer. He may have built his own templates.
Look in /app/vendors/shells/templates/actions. If there are files
there then the default template has been rewritten.
On Sep 16, 11:37 am, AD7six wrote:
> On Sep 16, 11:32
31 matches
Mail list logo