1
wishcraft
cakePHP 1.1 Is it worth importing?

I am wondering if anyone feels upto writing a clone of the cakePHP (www.cakephp.org) range in case someone want to do imports of cakePHP applications in a XOOPS framework.

I recently made my bin directory where you download all those Modules and Hacks from I wrote recently for xoops.

The bin is in cake PHP,http://bin.chronolabs.org.au/ is the path I am talking about here is the file structure of the bin subdomain on chronolabs.

I don't know I have been playing with it through the evening into the morning for the first time and it seems like a good application framework for RAD, might get some use it would be kewl if you could drop in these.

File Path
../root
.... /.htaccess (1.0)
.... /
index.php (1.1)
.... /
zip/download.php (1.3)
.... /
files/ <-cake goes here


1.0 - .htaccess file
Quote:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ([a-zA-Z0-9\ \'\_\-\.]+.zip)$ zip/download.php?file=$1 [L,NC,QSA]


1.1 - Index.php
<? header("Location: http://bin.chronolabs.org.au/files/downloads/"); ?>


1.1 - download.php
<?
    
$default = array('driver' => 'mysql',
                                
'connect' => 'mysql_connect',
                                
'host' => 'localhost',
                                
'login' => 'htriukrw_bin',
                                
'password' => 'password',
                                
'database' => 'htriukrw_bin',
                                
'prefix' => '_cake');

    if (isset(
$default)){     

     
$mysql mysql_connect($default['host'],$default['login'],$default['password']);
     
$db mysql_select_db($default['database'],$mysql);
     
$result mysql_query('update '.$default['prefix'].'downloads set downloads=downloads+1 WHERE download_url LIKE "%'.$_REQUEST['file'].'";',$mysql);
    }     

     
header("Expires: Mon, 26 Nov 1962 00:00:00 GMT");
     
header("Last-Modified: " gmdate("D,d M Y H:i:s") . " GMT");
     
header("Cache-Control: no-cache, must-revalidate");
     
header("Pragma: no-cache");
     
header("Content-Type: Application/octet-stream");
     
header("Content-disposition: attachment; filename=" $_REQUEST['file']);
     
readfile($_REQUEST['file']);

    if (isset(
$mysql)){     
     
$result mysql_query('update '.$default['prefix'].'downloads set complete=complete+1 WHERE download_url LIKE "%'.$_REQUEST['file'].'";',$mysql);
    }     
?>


Then build my cake frame work which i worked out from the tutorial on cake and there bakery is lacking items.
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

2
phppp
Re: cakePHP 1.1 Is it worth importing?
  • 2008/2/17 6:54

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


We are adopting some packages from CakePHP into XOOPS core, meanwhile we are building a mechanism to import any third-party frameworks in XOOPS 2.3.

3
mjoel
Re: cakePHP 1.1 Is it worth importing?
  • 2008/2/17 9:51

  • mjoel

  • Quite a regular

  • Posts: 325

  • Since: 2006/12/9


nice

there is a tutorial posted last year telling how to build up modules for XOOPS with cakePHP

https://xoops.org/modules/news/article.php?storyid=4045

4
wishcraft
Re: cakePHP 1.1 Is it worth importing?

Thanks phppp '=), so would recommend spending sometime to make x-cakePHP or something to that effect as a module you can import so people can drop there cake APPs, into the modules app folder to have something either running within the XOOPS environment or like mediawiki does goes to CakePHP mode.

I am sure it would only take a couple of days, I am just wondering what you mean by importing frameworks.. Can you offer me some advice thanks..

Just working on my time allocation!!
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

5
wishcraft
Re: cakePHP 1.1 Is it worth importing?

Resized ImageModule: x-Cake
Adaption By: Simon Roberts
Size: 342Kb's
License: MIT

x-Cake is the Rapid Development Suite for PHP Applications, it is stable release 1.1 of cake modified to work in the modules section of xoops.

You can quickly write modules for XOOPS if you know the Cake Method and structure, or import your existing Cake Framework Application into a more dynamic environment like xoops. For support and information on cakephp try their website..

Quote:

CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. Using commonly known design patterns like MVC and ORM within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code.
www.cakephp.org


Download: xoops2_xcake_1.1.zip (343Kb)
Original Author: www.cakephp.org
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

6
kiang
Re: cakePHP 1.1 Is it worth importing?
  • 2008/2/23 13:36

  • kiang

  • Not too shy to talk

  • Posts: 126

  • Since: 2002/9/2 1


Quote:

phppp wrote:
We are adopting some packages from CakePHP into XOOPS core, meanwhile we are building a mechanism to import any third-party frameworks in XOOPS 2.3.


Hello, is there exists some more information about this? :)
Resized Image

7
JulioNC
Re: cakePHP 1.1 Is it worth importing?
  • 2008/2/23 16:47

  • JulioNC

  • Quite a regular

  • Posts: 239

  • Since: 2004/10/8


Hi Kiang,

Add new class files for 2.3 branch (trunk).

http://xoops.svn.sourceforge.net/viewvc/xoops/XoopsCore/trunk/

I'd like to see MVC pattern in XOOPS.

Login

Who's Online

200 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 200


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits