Friday, August 30, 2013

Re: CakePHP 2.4.0 is ready

There aren't any plans currently to replace Sanitize. This primarily because most of what it did is better done through other methods. The documentation for data sanitization has already been updated in the cookbook http://book.cakephp.org/2.0/en/core-utility-libraries/sanitize.html to reference the new tools.

Sanitize is being deprecated and ultimately removed because it promotes bad practices and is a liability in the long term. Input filtering especially with HTML is very complex to do correctly. I'm am almost certain that the list or regexs Sanitize used missed things leaving apps vulnerable. Other features Sanitize provides have been implemented in PHP since the inception of the framework. Generally the solutions existing in the language are better than those that Sanitize provided as well.

-Mark

On Friday, 30 August 2013 18:03:21 UTC-4, advantage+ wrote:

Regarding "Sanitize class has been deprecated and will be removed in 3.0."

 

Is there something in-place / inline / in development that will replace this class?

 

Seemed like a great tool, why dropping it?

 

Dave

 

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Re: CakePHP 2.4.0 is ready

Congraturations on 2.4 release.

I have a question about CAKEPHP_SHELL has been deprecated in this version and will be removed in 3.0.

How should we know if it is shell or not ?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

RE: CakePHP 2.4.0 is ready

Regarding "Sanitize class has been deprecated and will be removed in 3.0."

 

Is there something in-place / inline / in development that will replace this class?

 

Seemed like a great tool, why dropping it?

 

Dave

 

RE: CakePHP 2.4.0 is ready

Since 2.4.0 is stable, when will the website be updated?  Is currently 2.3.9

Sent from my Windows Phone

From: mark_story
Sent: 8/30/2013 4:09 PM
To: cake-php@googlegroups.com
Subject: CakePHP 2.4.0 is ready

CakePHP 2.4.0 is ready

The CakePHP core team is proud to announce the immediate availability of CakePHP 2.4.0 and 2.3.10[1]. There have been a few small improvements and fixes since the release of 2.4.0-RC2.

## CakePHP 2.4.0

CakePHP 2.4.0 is now marked as stable. It is a new version in the 2.x series that is API compatible with other releases in the 2.x series. Make sure you read the migration guide [2] before upgrading as there are a few changes you may need to make.

A quick overview of the changes in 2.4 are:

* The constants IMAGES_URL, JS_URL, CSS_URL have been deprecated and replaced with config variables App.imageBaseUrl, App.jsBaseUrl, App.cssBaseUrl respectively. Each of the deprecated constants will be removed in 3.0.
* The CAKEPHP_SHELL constant has been deprecated and will be removed in 3.0.
* Sanitize class has been deprecated and will be removed in 3.0.
* FileLogs can now have a max size and simple rotation configured.
* Logging now support syslog out of the box.
* A number of locales have been renamed.
* JSONP support has been added to the JsonView
* You can disable updating counterCache values with the `counterCache` option when saving models.
* Password hashing has been extracted into a set of PasswordHasher classes. These classes make changing out password hashing strategies for the various authentication adapters simple.
* Stateless authentication has been improved.

For a full list of the changes and improvements you should review the 2.4 Migration guide [2].

### Changes to 2.4.0 since 2.4.0-RC2

* confirm handlers are now correctly encoded.
* Helpers are now loaded during View construction. This ensures that helpers are always available.
* View blocks can now operate on any object that can be converted to a string.
* All changes detailed in the 2.3.10 changelogs are also included with 2.4.0


## CakePHP 2.3.10

2.3.10 marks the end of normal bug fix releases for 2.3.x. Security fixes will continue to be released for 2.3.x until 2.6.0. The following is a short list of issues fixed and changes you can find in 2.3.10

* Configuration values are now merged between Emails and their transports.
* CakeTime::timeAgoInWords() now uses 'about X ago' when the time delta is lower than accuracy.
* DbAcl now uses INNER joins instead of LEFT joins. This yields improved performance with some database vendors.
* CakeEmail::template() can now disable the layout as documented.
* Number formatting in locales that use ',' for a decimal separator is now correct.
* RedirectRoute now honors the 'persist' parameter correctly.
* Constants are now conditionally defined in ShellDispatcher.
* session.auto_start is no longer set as it never worked and triggers errors in PHP 5.5.
* Sqlite now generates schema correctly when BIGINT columns are used as a primary key.
* FileCache now removes special characters that would cause issues on windows systems.
* i18n shell now correctly extracts categories other than LC_MESSAGES.

Development continues to progress on 3.0 with pull requests being frequently opened. Work has also begun on 2.5, another API compatible release in the 2.x line of releases. A huge thanks to all involved in terms of both contributions through commits, tickets, documentation edits, and those whom have otherwise contributed to the framework. Without you there would be no CakePHP. Download a packaged release [3].

### Links

* [1] https://github.com/cakephp/cakephp/releases
* [2] http://book.cakephp.org/2.0/en/appendices/2-4-migration-guide.html
* [3] https://github.com/cakephp/cakephp/tags

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Friendly ACO names

There is a way to create friendly ACOs names, like Drupal permissions?

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

cakePHP beginner: first app; some questions

Hi,

For my very first cakePHP app I'd like to do the following:
- I have a table in a db which contains columns for a person's name, and two integer columns named Present and NotPresent.
- What I wish to do is give the app the possibility to a. Add new users (which would add 0 in both present and notPresent columns to start with), b. Show the users listed in the table with checkboxes next to them denoting if that user is Present or NotPresent. c. I want these checkboxes to update the integer columns when the form is submitted. and D. I want the app to be able to simply list the users with the amount of times present and notPresent in a table, where this can be sorted.

Would it be smart to start with scaffold in this case? I am a very green cakePHP coder so if this is an incredibly stupid question, please cut me some slack :)

Regards,
Florian

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Re: decrypt password

It (deliberately) uses one way encryption. All it can do is encrypt your password attempt and see if it matches what is stored (which is also encrypted).

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 30 Aug 2013, at 10:53, raj kumar Pustela <pustelaraj@gmail.com> wrote:

hi to all,

                how to decrypt  password in cakephp.if any one known pls help me.. 


Thannks,
Rajakumar

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

decrypt password

hi to all,

                how to decrypt  password in cakephp.if any one known pls help me.. 


Thannks,
Rajakumar

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Thursday, August 29, 2013

Re: Element Path Help

Not that I know of and by looking at the source, it doesn't seem so
either: https://github.com/cakephp/cakephp/blob/c1ae41da510befbc514a59ca486fb79d2a18f158/lib/Cake/View/View.php#L371-L423

The only way I can think of doing is by putting the required element
in a Plugin, then it will be accessible by any theme.


On Fri, Aug 30, 2013 at 2:49 AM, Advantage+ <movepixels@gmail.com> wrote:
> The "admin" section of the site is displaying from inside Themed/Admin and I
> am trying to grab an element outside of the theme.
>
>
>
> How do you correctly specify to look outside of the theme? echo
> $this->Element(); works fine for elements within the theme but to access the
> root Element folder?
>
>
>
> Thanks,
>
> Dave
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscribe@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Simon Males

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Ejemplo de proyecto en cakephp

Amigos:

Alguien tiene un ejemplo de un login en cakephp y mysql que me haga el favor y me lo pase. Si tiene el ejemplo del blog para descargarlo tambiƩn le agradeceria

muchas gracias

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Element Path Help

The "admin" section of the site is displaying from inside Themed/Admin and I am trying to grab an element outside of the theme.

 

How do you correctly specify to look outside of the theme? echo $this->Element(); works fine for elements within the theme but to access the root Element folder?

 

Thanks,

Dave

RE: Link with inline CSS styles

Thanks,

 

I will give that a shot. Let you know how it goes.

Appreciated.

 

Dave

 

From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of euromark
Sent: Thursday, August 29, 2013 11:55 AM
To: cake-php@googlegroups.com
Subject: Re: Link with inline CSS styles

 

Ideally, you use a helper and its afterLayout callback to finalize/modify the rendered html.

Thats how it works for me.

 

Something like that:

 

App::uses('InlineCssLib', 'Tools.Lib');

 

class EmailProcessingHelper extends AppHelper {

 

            /**

            * Process Email HTML content after rendering of the email

            *

            * @param string $layoutFile The layout file that was rendered.

            * @return void

            */

            public function afterLayout($layoutFile) {

                        $content = $this->_View->Blocks->get('content');

                        $content = $Message->prepareHtmlContent($content, array());

 

                        if (!isset($this->InlineCss)) {

                                    $this->InlineCss = new InlineCssLib();

                        }

                        $content = trim($this->InlineCss->process($content));

 

                        $this->_View->Blocks->set('content', $content);

            }

 

}


Am Donnerstag, 29. August 2013 01:43:19 UTC+2 schrieb advantage+:

Very true, my bad.

 

I have:

App::uses('InlineCssLib', 'InlineCss');

$body = new InlineCssLib();

$body -> process();

 

But what am I processing? I have to force render the template / layout for the email, pass that to $body -> process();

Then pass body to the email?

 

App::uses('CakeEmail', 'Network/Email');

$email = new CakeEmail($account);

$email -> to($data['User']['email']);

$email -> sender($this->accounts[$account]);

$email -> subject($data['Post']['reply_sublect']);

$email -> setHeaders(array(

                'X-Mailer' => 'PHP ' . phpversion()));

$email -> viewVars(array('data' => $data));

$email -> template('default');

$email -> emailFormat('html');

 

                if($email -> send()){

                                $sent = true;

                }

return $sent;

 

Thanks again for your time,

 

Dave

 

 

From: cake...@googlegroups.com [mailto:cake...@googlegroups.com] On Behalf Of euromark
Sent: Wednesday, August 28, 2013 9:06 PM
To: cake...@googlegroups.com
Subject: Re: Link with inline CSS styles

 

They are pretty self-explanatory

 

And even if you cant get em running, they at least can show you how it can be done.

What more is there one might need? :D



Am Mittwoch, 28. August 2013 23:28:11 UTC+2 schrieb advantage+:

Are there any docs for either of these Lib's?

 

One requires the other but neither seem to have any documentation.

You mention "after rendering pre-process" how? When? where?

Trying it now but lost as you can guess.

 

Thanks,

Dave

 

From: cake...@googlegroups.com [mailto:cake...@googlegroups.com] On Behalf Of euromark
Sent: Tuesday, August 27, 2013 8:23 PM
To: cake...@googlegroups.com
Subject: Re: Link with inline CSS styles

 

See https://github.com/dereuromark/tools/blob/master/Lib/InlineCssLib.php for details.


Am Mittwoch, 28. August 2013 00:46:50 UTC+2 schrieb euromark:

I still declare those styles with <style> blocks in the templates and after rendering pre-process the whole layout prior to actually sending the email

in this processing step all styles will be made inline using a Lib wrapper for https://github.com/tijsverkoyen/CssToInlineStyles

 


Am Dienstag, 27. August 2013 23:58:26 UTC+2 schrieb advantage+:

This is for an html email and I want the styles inline so it display's correct in more clients / email hosts / versions.

 

Trying to avoid standard class's as normal:

<STYLE>

body {

….

}

.some_class{}

.other_class{}

</STYLE>

 

From: cake...@googlegroups.com [mailto:cake...@googlegroups.com] On Behalf Of euromark
Sent: Tuesday, August 27, 2013 6:54 PM
To: cake...@googlegroups.com
Subject: Re: Link with inline CSS styles

 

You never need to. There is always a wax with CSS

 

But applying it as normal options key value pair helps:

 

  $this->Html->link(LinkTitle, LinkUrl, array('style' => 'here it goes'))

 

As documented in the helper section.



Am Dienstag, 27. August 2013 21:13:52 UTC+2 schrieb advantage+:

Is there a way to add inline CSS styles to a link?

I tried to combine / add in the $this->Html->style(array()); with the link but to no avail.
Any insight would be great.
 
I know it's not best to use inline styles but in this case I need to.

 

Thanks,

Dave

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com.
To post to this group, send email to cake...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com.
To post to this group, send email to cake...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com.
To post to this group, send email to cake...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Link with inline CSS styles

Ideally, you use a helper and its afterLayout callback to finalize/modify the rendered html.
Thats how it works for me.

Something like that:

App::uses('InlineCssLib', 'Tools.Lib');

class EmailProcessingHelper extends AppHelper {

/**
* Process Email HTML content after rendering of the email
*
* @param string $layoutFile The layout file that was rendered.
* @return void
*/
public function afterLayout($layoutFile) {
$content = $this->_View->Blocks->get('content');
$content = $Message->prepareHtmlContent($content, array());

if (!isset($this->InlineCss)) {
$this->InlineCss = new InlineCssLib();
}
$content = trim($this->InlineCss->process($content));

$this->_View->Blocks->set('content', $content);
}

}

Am Donnerstag, 29. August 2013 01:43:19 UTC+2 schrieb advantage+:

Very true, my bad.

 

I have:

App::uses('InlineCssLib', 'InlineCss');

$body = new InlineCssLib();

$body -> process();

 

But what am I processing? I have to force render the template / layout for the email, pass that to $body -> process();

Then pass body to the email?

 

App::uses('CakeEmail', 'Network/Email');

$email = new CakeEmail($account);

$email -> to($data['User']['email']);

$email -> sender($this->accounts[$account]);

$email -> subject($data['Post']['reply_sublect']);

$email -> setHeaders(array(

                'X-Mailer' => 'PHP ' . phpversion()));

$email -> viewVars(array('data' => $data));

$email -> template('default');

$email -> emailFormat('html');

 

                if($email -> send()){

                                $sent = true;

                }

return $sent;

 

Thanks again for your time,

 

Dave

 

 

From: cake...@googlegroups.com [mailto:cake...@googlegroups.com] On Behalf Of euromark
Sent: Wednesday, August 28, 2013 9:06 PM
To: cake...@googlegroups.com
Subject: Re: Link with inline CSS styles

 

They are pretty self-explanatory

 

And even if you cant get em running, they at least can show you how it can be done.

What more is there one might need? :D



Am Mittwoch, 28. August 2013 23:28:11 UTC+2 schrieb advantage+:

Are there any docs for either of these Lib's?

 

One requires the other but neither seem to have any documentation.

You mention "after rendering pre-process" how? When? where?

Trying it now but lost as you can guess.

 

Thanks,

Dave

 

From: cake...@googlegroups.com [mailto:cake...@googlegroups.com] On Behalf Of euromark
Sent: Tuesday, August 27, 2013 8:23 PM
To: cake...@googlegroups.com
Subject: Re: Link with inline CSS styles

 

See https://github.com/dereuromark/tools/blob/master/Lib/InlineCssLib.php for details.


Am Mittwoch, 28. August 2013 00:46:50 UTC+2 schrieb euromark:

I still declare those styles with <style> blocks in the templates and after rendering pre-process the whole layout prior to actually sending the email

in this processing step all styles will be made inline using a Lib wrapper for https://github.com/tijsverkoyen/CssToInlineStyles

 


Am Dienstag, 27. August 2013 23:58:26 UTC+2 schrieb advantage+:

This is for an html email and I want the styles inline so it display's correct in more clients / email hosts / versions.

 

Trying to avoid standard class's as normal:

<STYLE>

body {

….

}

.some_class{}

.other_class{}

</STYLE>

 

From: cake...@googlegroups.com [mailto:cake...@googlegroups.com] On Behalf Of euromark
Sent: Tuesday, August 27, 2013 6:54 PM
To: cake...@googlegroups.com
Subject: Re: Link with inline CSS styles

 

You never need to. There is always a wax with CSS

 

But applying it as normal options key value pair helps:

 

  $this->Html->link(LinkTitle, LinkUrl, array('style' => 'here it goes'))

 

As documented in the helper section.



Am Dienstag, 27. August 2013 21:13:52 UTC+2 schrieb advantage+:

Is there a way to add inline CSS styles to a link?

I tried to combine / add in the $this->Html->style(array()); with the link but to no avail.
Any insight would be great.
 
I know it's not best to use inline styles but in this case I need to.

 

Thanks,

Dave

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com.
To post to this group, send email to cake...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com.
To post to this group, send email to cake...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+u...@googlegroups.com.
To post to this group, send email to cake...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

New Ebook: Using Facebook to Generate Leads

  Cannot see this email? View in browser
 
Web Marketing Today
 
Editor's Note: Without advertisers like HubSpot, below, Web Marketing Today would not exist. They enable us to pay our contributors and deliver free content to you, our valued reader. We thank HubSpot for its sponsorship. 
And we thank you for reading.  August 29, 2013
 
Hello from HubSpot,

74% of marketers say that Facebook is important to their lead generation strategies.

So what are you waiting for?

Download our latest ebook, How to Generate Leads Using Facebook, to start getting more out of your Facebook presence.

This guide comes complete with expert insights from the co-author of Facebook Marketing for Dummies, Andrea Vahl, and covers:

  • What types of content you should post on Facebook
  • How to capture leads from Facebook
  • How to start advertising on Facebook
  • How to measure your Facebook marketing success

Download your copy of this free ebook today.

HubSpot, Inc. 25 First Street, 2nd Floor | Cambridge, MA 02141 | www.hubspot.com


 
Share: Twitter Facebook


Web Marketing Today®
518 28 Road, Suite B-203, Grand Junction, CO, 81501, U.S. 970-257-0606
Contact Us

Copyright © 2013 Web Marketing Today. All rights reserved.
Please do NOT reprint or host on your website without explicit permission.
 

 

If you do not wish to receive mail from us, please click here to unsubscribe .

Wednesday, August 28, 2013

Re: Link with inline CSS styles

echo $this->Html->link(
  'whatever',
  array(
    // ...
  ),
  array(
    'style' => 'color: red; text-decoration: none;' // etc.
  )
);


On Tue, Aug 27, 2013 at 3:13 PM, Advantage+ <movepixels@gmail.com> wrote:

Is there a way to add inline CSS styles to a link?

I tried to combine / add in the $this->Html->style(array()); with the link but to no avail.
Any insight would be great.
 
I know it's not best to use inline styles but in this case I need to.

 

Thanks,

Dave

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Re: User Defined Dashboard?

Your question is a bit vague. By "items" do you mean the output from several models? For example, I can imagine a page which listed a selection of films, books, and ... well, some other things. We could have a view template which checked to see which of those were included in the data and output accordingly:

if (isset($data['Film'])) {
  echo $this->element('Films/list');
}
if (isset($data['Book'])) {
// etc.

Presumably, the controller would fetch things depending on a Group profile of some sort. You could do that with a table which had a 'models' field, for example. If the controller used all of the available models, you could fetch the profile, then loop through the ProfileModel (or whatever) array.



On Wed, Aug 28, 2013 at 6:44 PM, April DeRossett <april.derossett@gmail.com> wrote:
AHOY!

In a current project I have a "dashboard" component for users to access information that is, currently, driven by their group.  However, I would love the users to have the ability to define what items appear on their dashboard...but, I just can't seem to wrap my head around how to make this happen in Cake.  Has anyone done this?  And can you give me a 'feel" for how to approach it?  I am using the 960 grid system...Thanks in advance for any advice!  April


--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Models Associations

A controller may "use" more than one model. (Or none at all.)

public $uses = array('Model1', 'Model2');

However, as you're new to Cake I recommend you don't do that. Once you're comfortable with Cake's conventions you'll understand better when to do that.

Your UsersController would contain methods (actions) for logging in and out, resetting passwords, listing Users for the admin, etc.

Note that once you've set up your associations you can chain the models together:

$data = $this->Test->Questions->find('all', ...);

If you haven't already, go through the blog tutorial. It doesn't include everything you'll need to know but it should give you a better idea of how to create an application with Cake.


On Tue, Aug 27, 2013 at 1:28 PM, Michael Roker <mroker@gmail.com> wrote:
Hi folks, this is my new post. I am new to CakePHP, and to be honest I love it. However, I am definitely confused when it comes to the models/tables and associations. I am now working on a small project which is an online exam application. I've read the models section , in particular the models assocation but still very confused. I have some questions.

For my 'objects' I have Users,Questions,Tests,TestScores. I am confused firstly that I have a UsersController, and a QuestionsController and not sure if I can have multiple models per controller. If this is true, then I can only have one table per Model? Do you guys have any resources on designing databases so I can then reflect that onto CakePHP? Lastly, are there any resources or more information on the model associations?

I hope I didn't violate any policies being a new user and all.

Thanks!

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

Re: CakePHP and Twitter Bootstrap. Current state?

I haven't looked at any of those plugins so I don't know what I'm missing. I just drop BS into my css and js dirs, load the files in my templates, and carry on.


On Tue, Aug 27, 2013 at 3:21 AM, Elias Stassinos <elias.stassinos@gmail.com> wrote:
Hi All!

I have searched through this group and google and right now i have found that there are these possibilities in order to use TWB with cakePHP:



Which one should i use?

The reason behind all this customization for TWB to worj with cakePP lies in the fact that cakePHP outputs its own classes and attributes to the html? or there are more reasons?

Thanks

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.