VH1 site in CakePHP

2007-11-19 Thread jeko

Howdy Folks,

We just finished our site for VH1, built entirely on CakePHP. 4 app
servers behind an f5 BigIP load balancer, 1 MySQL DB server, 1 NFS
server. Take a look.

http://theshotspot.com/

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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Can $ajax-sortable drag around table rows?

2007-10-24 Thread jeko

Convention seems to be pointing towards:

Column header
Column data


Which is not what most of us are used to, but it is better in the long
run. Follow that type of markup for your tables, and you'll find that
you can drop in any kind of JS library fanciness.

On Oct 24, 6:44 pm, schneimi <[EMAIL PROTECTED]> wrote:
> I just read 
> throughhttp://wiki.script.aculo.us/scriptaculous/show/Sortable.create,
> and there is some important note about tables but also a very good
> hint.
>
> Just wrap a  around your 's and use the id of the tbody for
> sorting.
>
> schneimi schrieb:
>
> > I had the same problem and ended up in using a nested table inside a
> > ul, but I don't like it very much.
>
> > I found out that there is a tag option which can be used like $ajax-
> > >sortable('sortable_table', array('tag' => 'tr')) but it didn't work
> > as well.
>
> > On 24 Okt., 20:25, Corie <[EMAIL PROTECTED]> wrote:
> > > I have a table in which I want to sort the rows by using the drag and
> > > drop methods of $ajax->sortable, but it's not working. Are table rows
> > > even draggable, or do I have to make a nested table inside a ul?


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: selected radio button with 'value'=>'08:00-12:00'

2007-04-18 Thread jeko

The HTML output should tell you what the problem is. Basically, you
are supplying a third radio option, check the HTML source, it will
make sense.

On Apr 18, 5:55 am, szeta <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I found an answer how to select an option in the html-radio helper
> with the 'value' field in the options-array.
> It does not work for me:
>
> radio('Feedback/timeofday',
> array('08:00-12:00'=>'08:00-12:00','13:00-17:30'=>'13:00-17:30',
> 'value'=>'08:00-12:00')); ?>
>
> I am expecting:
> (*) 08:00-12:00
> ( ) 13:00-17:30
>
> But the result looks like:
> ( ) 08:00-12:00
> ( ) 13:00-17:30
> ( ) 08:00-12:00
>
> What am i doing wrong?
>
> Regards
> Ralph


--~--~-~--~~~---~--~~
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 options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: FCK eventually sorted out - For AD7Six (and those interested)

2006-08-02 Thread jeko

Hey John,

Regarding your onload problem, you could do
window.attachEvent("onload", startup); in your js file, and it should
fix the body onload 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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: help on findBy...

2006-07-05 Thread jeko

My solution has been to avoid using findByFieldName altogether, and opt
for the slightly more involved $this->Model->find('field_name =
\''.$foo.'\''). While it is obviously not as elegant as the automagic
find, it does work on both php4 and php5 and is readable.


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Doesn't save, but no errors

2006-06-24 Thread jeko

Are you using routes for anything in the users controller?


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Shopping Cart Session Code

2006-06-22 Thread jeko

I'll make it a little less app specific first, but that's a good idea.


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Shopping Cart Session Code

2006-06-22 Thread jeko

Thought this might be useful for some, manages a session cart/wishlist:

Session->read('Wishlist');
pr($products);
if (isset($products))
{
foreach ($products as $product => $qty)
{
$wishlist[$i] = 
$this->Product->find(array('product_number' =>
$product), 'product_number, name, wholesale');
$wishlist[$i]['Product']['deleteKey'] = 
$product;
$wishlist[$i]['Product']['quantity'] = $qty;
$i++;
}
}
$this->set('wishlist', $wishlist);
}

// save any changes made to qunitites of items
// otherwise proceed to checkout information
function save()
{
$wishlist = $this->Session->read('Wishlist');
$arr = $this->data['Wishlist'];
$count = count($wishlist);
//quantities changed
if ($this->params['form']['update'])
{
foreach ($arr as $product => $qty)
{
$wishlist[$product] = $qty;
}
$this->Session->write('Wishlist', $wishlist);
$this->redirect('/wishlist/');
}
//proceed to check out
else if ($this->params['form']['next'])
{
$this->redirect('/orders/billing/');
}
else
{
$this->redirect('/wishlist');
}
}

// adds a product id to session
// default quantity is one
function add()
{
$product = $this->data;
if (empty($this->data))
{
$this->render();
}
else
{
$wishlist = $this->Session->read('Wishlist');
$wishlist[$product['Product']['product_number']] = 1;

$key = 'Wishlist';
$value = $wishlist;
if ($this->Session->write($key, $value))
{
$this->flash($product['name'].' 
added.','/product_offerings');
}
else
{
$this->set('wishlist', $this->data);
$this->render();
}
}
$wishlist = $this->Session->read('Wishlist');
$this->set('wishlist', $wishlist);
}

// delete key in session
function delete($key=null)
{
$this->Session->del('Wishlist.'.$key);
$this->redirect('/wishlist');
}
}
?>


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: FCK eventually sorted out - For AD7Six (and those interested)

2006-06-20 Thread jeko

I haven't used FCKeditor, but a great trick for preventing js/css files
from caching is to throw a query string on the end of it.

ex: 

Otherwise, awesome help. I'm personally sticking with xinha for now.


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: othAuth and default sessions

2006-06-12 Thread jeko

change it to 'medium' then see what happens.


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: othAuth and default sessions

2006-06-12 Thread jeko

What is CAKE_SECURITY set to in core.php?


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: HasMany relationship and select conditions

2006-06-12 Thread jeko

It sounds like you should use bindModel in the controller, and set a
variable for the conditions key in the hasMany Instructor array.


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Using Peterned's whatever:hover

2006-06-05 Thread jeko

I recommend against the .htc method, in favor of applying a css class
name using JavaScript. Like this:

function elHover() {
if (document.getElementById("navItem")) {
var hoverEl = document.getElementById("navItem");
hoverEl.onmouseover=function() {
this.className+=" over";
}
hoverEl.onmouseout=function() {
this.className=this.className.replace(new RegExp(" 
over\\b"), "");
}
}
}

this is known as the suckerfish hover, and is pretty much the best
solution I've found.


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Werid data fetching issue (suddenly changed)

2006-06-01 Thread jeko

Set the recursivity in the model like this: var $recursive = '2';


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: css rules

2006-06-01 Thread jeko

Here's a great article on printing and CSS.
http://alistapart.com/articles/boom


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Access Control Manager (ACM) Plugin Now Available!

2006-05-06 Thread jeko


Cake Access Control Manager

* Home
* Users & Groups
* Managed Controllers
* Permissions

CakePHP : Rapid Development Framework

Controller dump:

AcmController Object
(
[name] => Acm
[uses] => Array
(
[0] => AcmUser
[1] => AcmRole
[2] => AcmPrivilege
)

[components] => Array
(
[0] => Acl
[1] => Session
)

[helpers] => Array
(
[0] => Html
[1] => Ajax
[2] => Javascript
[3] => Acm
)

[layout] => cpanel
[autoRender] =>
[aroTree] => Array
(
)

[roleModel] => AcmRole
[userModel] => AcmUser
[here] => /mariposa/acm/acm
[action] => index
[viewPath] => acm
[_viewVars] => Array
(
)

[pageTitle] =>
[modelNames] => Array
(
[0] => AcmUser
[1] => AcmRole
[2] => AcmPrivilege
)

[base] => /mariposa/acm
[autoLayout] => 1
[beforeFilter] =>
[view] => View
[_viewClass] => View Object
(
[name] => Acm
[here] => /mariposa/acm/acm
[parent] =>
[action] => index
[uses] =>
[helpers] => Array
(
[0] => Html
[1] => Ajax
[2] => Javascript
[3] => Acm
)

[viewPath] => acm
[_viewVars] => Array
(
)

[pageTitle] =>
[models] => Array
(
)

[base] => /mariposa/acm
[layout] => cpanel
[autoRender] =>
[autoLayout] => 1
[params] => Array
(
[controller] => acm
[action] => index
[url] => Array
(
[url] => acm
)

[bare] => 0
[webservices] =>
)

[hasRendered] =>
[controller] => AcmController Object
 *RECURSION*
[loaded] => Array
(
[html] => HtmlHelper Object
(
[base] => /mariposa/acm
[here] => /mariposa/acm/acm
[params] => Array
(
[controller] => acm
[action] => index
[url] => Array
(
[url] => acm
)

[bare] => 0
[webservices] =>
)

[action] => index
[data] =>
[model] =>
[field] =>
[_crumbs] => Array
(
)

[tags] => Array
(
[link] => %s
[mailto] => %s
[form] =>
[input] => [textarea] => %s [hidden] => [checkbox] => [radio] => %s
[selectstart] => [password] => [file] => [submit] => [image] =>
[tableheader] => %s [tableheaderrow] => %s [tablecell] => %s [tablerow]
=> %s [css] => [charset] => [javascriptblock] => [javascriptlink] => )
[_log] => [webroot] => /mariposa/ [themeWeb] => [plugin] => acm )
[ajax] => AjaxHelper Object ( [helpers] => Array ( [0] => Html [1] =>
Javascript ) [callbacks] => Array ( [0] => uninitialized [1] => loading
[2] => loaded [3] => interactive [4] => complete ) [ajaxOptions] =>
Array ( [0] => type [1] => confirm [2] => condition [3] => before [4]
=> after [5] => fallback [6] => update [7] => loading [8] => loaded [9]
=> interactive [10] => complete [11] => with [12] => url [13] => method
[14] => position [15] => form [16] => parameters [17] => evalScripts
[18] => asynchronous [19] => onComplete [20] => onUninitialized [21] =>
onLoading [22] => onLoaded [23] => onInteractive [24] => insertion )
[dragOptions] => Array ( [0] => handle [1] => revert [2] => constraint
[3] => change ) [dropOptions] => Array ( [0] => accept [1] =>
containment [2] => overlap [3] => greedy [4] => hoverclass [5] =>
onHover [6] => onDrop ) [sortOptions] => Array ( [0] => tag [1] => only
[2] => overlap [3] => constraint [4] => containment [5] => handle [6]
=> hoverClass [7] => ghosting [8] => dropOnEmpty [9] => onUpdate [10]
=> onChange ) [sliderOptions] => Array ( [0] => axis [1] => increment
[2] => maximum [3] => minimum [4] => alignX [5] => alignY [6]

Re: Access Control Manager (ACM) Plugin Now Available!

2006-05-06 Thread jeko

I'm getting a controller dump from AcmController Object. I haven't
encountered this before, so I'm not sure what to do. Some kind of UI
shows up at the end of the controller dump. Any ideas?


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Rails-inspired PHP frameworks

2006-05-04 Thread jeko

Digg loves numbered lists, try something like "Top 6 Rails-Inspired PHP
Frameworks." That might give you a boost.


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Saving model inside another models controller

2006-04-03 Thread jeko

OK, it's been reported.


--~--~-~--~~~---~--~~
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 options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Saving model inside another models controller

2006-04-02 Thread jeko

In the debug output, the values are escaped, but the column names are
not. Here's the output:

INSERT INTO lines (`name`,`description`) VALUES ('Test','Description')

I'm not sure who's to blame, I tried maually escaping the table name in
the console and I was still getting syntax errors. I'm no MySQL guru.
All I know is that I changed my model and it fixed the problem.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Saving model inside another models controller

2006-04-02 Thread jeko

LINES is a reserved word in MySQL. You can name a table 'lines' but
trying to get it to work with your application will generate SQL syntax
errors that CakePHP doesn't display. I had to learn this the long way a
few days ago. I changed my table to 'product_lines' and updated all my
code. I know it's a pain, but I think that's the only way to fix it.
Happy find-and-replacing.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---