Archive for January, 2010
cakePHP : How To Make Controller Without a Model?
on January 22, 2010
class MyController extends AppController { // var $uses = null; works too var $uses = array(); function index() { } } If you omit the “var $uses = array();†you will get a “missing model†error.
How to design a good letterhead?
on January 22, 2010
Many companies often neglect the importance of having a nice letterhead design. If you are unaware of the effectiveness of having a professionally designed letterhead, do note that you can literally turn this material in to an excellent, low-cost form of promotion and promotion gizmo. In the highly competitive business world today, it is crucial that you show people how you value your …
To follow ALL redirects using CURL brings up a lot of special cases
on January 20, 2010
To follow ALL redirects using CURL brings up a lot of special cases. Here’s a function that takes everything into account (even javascript redirects) <?php function get_final_url( $url, $timeout = 5 ) { $url = str_replace( "&", "&", urldecode(trim($url)) ); $cookie = tempnam ("/tmp", "CURLCOOKIE"); $ch = curl_init(); curl_setopt( $ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1" ); curl_setopt( $ch, …
Virtual University of Pakistan Ranking
on January 18, 2010
Please check all the pages!. http://www.webometrics.info/university_by_country.asp?country=pk&offset=-1&zoom_highlight=virtual+university The catalogue lists all the Universities and other Higher Education Institutions with an independent URL domain. The list is organized alphabetically by the name of the organization. If you know of any mistake, changes of the name or the URL, universities missed or institutions listed not belonging to the academic sector, please send an email to the …
Virtual University Pakistan : Watch Online Lectures
on January 17, 2010
Watch Online Lectures The Virtual University, Pakistan’s first University based completely on modern Information and Communication Technologies, was established by the Government as a public sector, not-for-profit institution with a clear mission: to provide extremely affordable world class education to aspiring students all over the country. Using free-to-air satellite television broadcasts and the Internet, the Virtual University allows students to follow its rigorous …
How to remove default timestamp displaying in .ctp files in cakePHP
on January 15, 2010
Please go to APP -> WEBROOT -> INDEX.PHP . There you will find the following code. Just comment it. //Just comment the following code in APP -> WEBROOT -> INDEX.PHP if (Configure::read() > 0) { echo "<!– " . round(getMicrotime() – $TIME_START, 4) . "s –>"; }
Set autoRender() false – Action without .ctp file in cakePHP Controller
on January 12, 2010
If you do not want to make any view against particular action. Then you can set autorender() to false. $this->autoRender = false; Here is example: //Use autoRender if you do not want to make getproptypes.ctp file in views. function getproptypes(){ $this->autoRender = false; }
Basics of Graphic Designing
on January 5, 2010
Graphic design fundamentally is visual problem solving using text or graphical elements. Your aim is to generate something that is catchy to the eye, and gets the attention of the viewer. But things canâ€t look great. They must work as well. Web-based applications have brought graphic designers closer to program development projects than ever before. Because the buttons, menus, and other screen elements …

