
alvin567
Members-
Posts
161 -
Joined
-
Last visited
Everything posted by alvin567
-
( ! ) Warning: include(Cake\bootstrap.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\swr_app \webroot\index.php on line 79 Call Stack # Time Memory Function Location 1 0.0017 387168 {main}( ) ..\index.php:0 ( ! ) Warning: include() [function.include]: Failed opening 'Cake \bootstrap.php' for inclusion (include_path='C:\wamp\www\lib;.;C:\php \pear') in C:\wamp\www\swr_app\webroot\index.php on line 79 Call Stack # Time Memory Function Location 1 0.0017 387168 {main}( ) ..\index.php:0 ( ! ) Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your \cake core directory and your \vendors root directory. in C:\wamp\www\swr_app\webroot\index.php on line 88 Call Stack What do I actually have to do?
-
explain to me,what is crawling?
-
$person = array(1,2,3,4,5,6,7,8,9,10); foreach($person as $person){ $sizeOfCompany = $this->Claim->query("Select count(*),count(*) * 100/(Select count(*) from claims) from claims where size = '$person' "); # of person,No of firms,% of contributions array_push($data,array($person,$sizeofCompany[0][0]['computed'],$sizeofCompany[0][0]['computed1'] . '%')); } $sizeofCompany = $this->Claim->query("Select count(*),count(*) * 100/(Select count(*) from claims) from claims where size Between 11 and 19"); array_push($data,array('11-19',$sizeofCompany[0][0]['computed'],$sizeofCompany[0][0]['computed1'] . '%')); $sizeofCompany = $this->Claim->query("Select count(*),count(*) * 100/(Select count(*) from claims) from claims where size Between 20 and 40"); array_push($data,array('20-40',$sizeofCompany[0][0]['computed'],$sizeofCompany[0][0]['computed1'] . '%')); $sizeofCompany = $this->Claim->query("Select count(*),count(*) * 100/(Select count(*) from claims) from claims where size > 40"); array_push($data,array('Over 40',$sizeofCompany[0][0]['computed'],$sizeofCompany[0][0]['computed1'] . '%')); array_push($data,''); How can i improve the quality of this code? I want to find the range 1,2,3,4,5,6,7,8,9,10,11-19,20-40,Over 40 And then i want to calculate the percentage of the total count
-
maybe you can add more method?
-
[Cakephp] Reverse engineer the cakephp model into a class diagram?
alvin567 replied to alvin567's topic in Frameworks
how do I differentiate between helper and behaviours?how do I point out the difference? -
Best Framework to use to Convert existing PHP App
alvin567 replied to thomasw_lrd's topic in Frameworks
if you can't find any framework that fits your need,just scrape it and use the normal way then. -
is it helpful to download existing project from a systems to play with it?
-
[Cakephp] difference between beforerender and beforefilter?
alvin567 replied to alvin567's topic in Frameworks
so does it mean that afterfind when find condition will be executed? -
i agree it sucks so how do I go by case by case basis? should I use an array or a loop construct?
-
Lets say I want to query from cakephp the range of number 1,2,3,4,5,6,7,8,9,10-20,20-40 of a certain group how can I do so?
-
How do I check if $val is empty? then if empty I want to set it as a todays date
-
Hi everyone,what is the difference between beforerender and beforefilter?
-
On top of that I have this error? Warning (2): mssql_query() [function.mssql-query]: message: Conversion failed when converting date and/or time from character string. (severity 16) [CORE/cake-1.2.6/libs/model/datasources/dbo/dbo_mssql.php, line 181] Warning (2): mssql_query() [function.mssql-query]: General SQL Server error: Check messages from the SQL Server. (severity 5) [CORE/cake-1.2.6/libs/model/datasources/dbo/dbo_mssql.php, line 181] Warning (512): SQL Error: Conversion failed when converting date and/or time from character string. [CORE/cake-1.2.6/libs/model/datasources/dbo_source.php, lin
-
Great!! $conditions = array( 'Renewal.year' => $renewal_period, 'Renewal.void' => 0, 'Renewal.approved' => 3, 'Claim.void' => 0, 'Claim.draft' => 0 ); Can I do this? array_push($conditions, array('Claim.created BETWEEN ? and ?' => array(strtotime($start), strtotime($end))));
-
[MSSQL] Reverse engineer existing database into ERD
alvin567 posted a topic in Microsoft SQL - MSSQL
Is there anyway to revise engineer the mssql database into the ERD diagram? -
what could be the problem,I know it is empty,one more clue,how do i check it is 1-1-1970 which is the date type?
-
$conditions['Claim.created <= '] = date('Y-m-d', $m2); lets say I have two date,$m1 and $m2,how do I set the condition to be between the date?
-
Took over an existing project but not much has been done yet
alvin567 replied to alvin567's topic in Miscellaneous
:confused: I am really confuse where I should go from this? I don't have much chance the debug the application? -
Hi there, my boss asked me to take over an existing projects,however my colleague is currently overseas,my boss ask me to ask my colleague the questions and my doubts,and up till now there have been not much progress yet.I am really worried and tensed that I may not be able to process. Currently,the project is using cakephp framework,I was tasked to edit only one single files and not others,whats more,I do not have business knowledge about the application I am working in and there is no appropiate documentation,I am really struggling badly now
-
Warning: include(cake\bootstrap.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\XXXXXXXXXX\app\webroot\index.php on line 86 Warning: include() [function.include]: Failed opening 'cake\bootstrap.php' for inclusion (include_path='C:\xampp\htdocs\lawsocscheme;C:\xampp\htdocs\lawsocscheme\app\;.;C:\xampp\php\PEAR') in C:\xampp\htdocs\lXXXXXXXXXX\app\webroot\index.php on line 86 Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your \cake core directory and your \vendors root directory. in C:\xampp\htdocs\XXXXXXXXXX\app\webroot\index.php on line 87 how can i solve this error?
-
Hi,there,I'm twenty-four this year from singapore,nice to meet all the follow coder here,right now I am having an internship. Wish to learn more about php configurations and web security.I want to have a career as a web developer.