Re: Why is this better?

2011-09-11 Thread elija
Yes it is readable and concise but a simple a href=.   is even
easier to read and doesn't use PHP to generate a link.  What I was
actually wondering was is there any advantage in CakePHP to using the
HTML Helper rather than just writing HTML in a view?

Having re-read my question, I realise that I was incredibly unclear.





On Sep 11, 3:22 am, Sam Sherlock sam.sherl...@gmail.com wrote:
 its a balance; the code you posted is readable and concise

 making links elements generally will add complexity to the simple and common
 (and varied task) of adding links

 when your link element has the ability to handle the various options it will
 be quite complex and the code will be less
 readable and also harder to adjust (the code to putput the link is going to
 be about the same). Plus it add no real advantage

 when you have a generic nature to a block of markup and vary parts within
 eg a piece of gallery content that contains a few divs  and a h3 and a link
 with and image

  - S

 On 10 September 2011 13:12, elija elijatheg...@gmail.com wrote:







  I'm going through the blog tutorial and have found myself wondering
  why

  ?php echo $this-Html-link($post['Post']['title'],
  array('controller' = 'posts', 'action' = 'view', $post['Post']
  ['id'])); ?

  is better than writing an a element?

  --
  Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
  others with their CakePHP related questions.

  To unsubscribe from this group, send email to
  cake-php+unsubscr...@googlegroups.com For more options, visit this group
  athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Why is this better?

2011-09-11 Thread elija
Thank you. That makes sense and now I don't have to learn it the hard
way.

On Sep 11, 8:30 am, Ryan Schmidt google-2...@ryandesign.com wrote:
 On Sep 11, 2011, at 02:29, elija wrote:

  Yes it is readable and concise but a simple a href=.   is even
  easier to read and doesn't use PHP to generate a link.  What I was
  actually wondering was is there any advantage in CakePHP to using the
  HTML Helper rather than just writing HTML in a view?

 The advantage of using PHP to generate the links is that if you change how 
 your routes are arranged, you don't then also have to update all your links 
 in your views.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


acl tutorial aros and acos tables

2011-09-11 Thread elija
I'm using cake 1.3 and following the Simple acl controlled
application tutorial. I get as far as adding my groups and users but
the aros and acos tables are both empty.

As I'm a complete beginner to Cake, where should I start investigating
this?

Cheers

Elija

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: acl tutorial aros and acos tables

2011-09-11 Thread elija
Moving to the next page, I see that acos isn't automatically populated
but in my case neither is aros. I've gone through the tutorial again
and can't see anything i've missed.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: acl tutorial aros and acos tables

2011-09-11 Thread elija
One of the DOH! moments.

In case anyone else is this much of an idiot, the code in 11.2.4 Acts
As a Requester is for the models, not the controllers.

On Sep 11, 5:54 pm, elija elijatheg...@gmail.com wrote:
 Moving to the next page, I see that acos isn't automatically populated
 but in my case neither is aros. I've gone through the tutorial again
 and can't see anything i've missed.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Why is this better?

2011-09-10 Thread elija
I'm going through the blog tutorial and have found myself wondering
why

?php echo $this-Html-link($post['Post']['title'],
array('controller' = 'posts', 'action' = 'view', $post['Post']
['id'])); ?

is better than writing an a element?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Thinking about using Cake PHP to develop some sites

2011-01-22 Thread elija
The sites are potentially going to be busy with millions of page views
a month (one has 1/2 million pages a month and is looking to expand),
my question is how scalable is a site built using Cake?

Thanks

Elija

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Thinking about using Cake PHP to develop some sites

2011-01-22 Thread elija
Sweet!

Now, given that this is in a corporate environment and the development
time is estimated to be several months, should I be thinking about
1.3.7 or should I skip to 2.0.0 and accept that some potential
instability while it is being developed will give a more up to date
framework when it is complete?



On Jan 22, 4:28 pm, Jamie jamie@gmail.com wrote:
 Ahh, the weekly can Cake handle my X views/hits/visitors question.
 Yes it can. Now go develop. ;)

 - Jamie

 On Jan 22, 7:25 am, elija elijatheg...@gmail.com wrote:

  The sites are potentially going to be busy with millions of page views
  a month (one has 1/2 million pages a month and is looking to expand),
  my question is how scalable is a site built using Cake?

  Thanks

  Elija

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php